]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix Bug 309760 - Crash while inline-renaming a file and apply change with return-key
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Fri, 9 Nov 2012 11:10:36 +0000 (12:10 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Fri, 9 Nov 2012 11:10:36 +0000 (12:10 +0100)
BUG: 309760
FIXED-IN: 4.9.4

src/kitemviews/private/kitemlistroleeditor.cpp

index ead5b298edda1f4820c7335a48c4f09a78ff0d4f..78dbfe95be72958d5a62305f642d16ec9a2cddd9 100644 (file)
@@ -144,7 +144,8 @@ void KItemListRoleEditor::keyPressEvent(QKeyEvent* event)
         return;
     case Qt::Key_Enter:
     case Qt::Key_Return:
         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:
         event->accept();
         return;
     default: