From: Emmanuel Pescosta Date: Fri, 9 Nov 2012 11:10:36 +0000 (+0100) Subject: Fix Bug 309760 - Crash while inline-renaming a file and apply change with return-key X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/9aacd610a37f5d03c7dbd9ce712985c477578893 Fix Bug 309760 - Crash while inline-renaming a file and apply change with return-key BUG: 309760 FIXED-IN: 4.9.4 --- diff --git a/src/kitemviews/private/kitemlistroleeditor.cpp b/src/kitemviews/private/kitemlistroleeditor.cpp index ead5b298e..78dbfe95b 100644 --- a/src/kitemviews/private/kitemlistroleeditor.cpp +++ b/src/kitemviews/private/kitemlistroleeditor.cpp @@ -144,7 +144,8 @@ void KItemListRoleEditor::keyPressEvent(QKeyEvent* event) return; case Qt::Key_Enter: case Qt::Key_Return: - emitRoleEditingFinished(); + // TODO: find a better way to fix the bug 309760 + clearFocus(); // emitRoleEditingFinished(); results in a crash event->accept(); return; default: