Fix Bug 309760 - Crash while inline-renaming a file and apply change with return-key

BUG: 309760
FIXED-IN: 4.9.4
This commit is contained in:
Emmanuel Pescosta 2012-11-09 12:10:36 +01:00
parent c0559a2a1d
commit 9aacd610a3

View file

@ -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: