]> cloud.milkyroute.net Git - dolphin.git/commit
Prevent crashes caused by nested event loops run when renaming inline
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 5 Nov 2012 21:03:52 +0000 (22:03 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 5 Nov 2012 21:03:52 +0000 (22:03 +0100)
commitc0559a2a1d7d66b26e1d00b4ff59c7fce8848566
tree0396ff10457b6c456ec56bcdc4fac0ec0647157d
parent07721cf76459d8fff9b96ffe3dde83bc418bed31
Prevent crashes caused by nested event loops run when renaming inline

When renaming inline and starting a drag or invoking the context menu,
a nested event loop will be run. If the role editor loses focus and
emits roleEditingFinished(), we must prevent that deleteLater() is
called because this would delete the role editor inside a nested event
loop which is run from one of its own functions. We would get a crash
when returning from that event loop otherwise.

BUG: 308018
BUG: 309421
FIXED-IN: 4.9.4
src/kitemviews/kstandarditemlistwidget.cpp
src/kitemviews/private/kitemlistroleeditor.cpp
src/kitemviews/private/kitemlistroleeditor.h