]> cloud.milkyroute.net Git - dolphin.git/commit
Do not crash when finishing inline renaming in unusual ways
authorFrank Reininghaus <frank78ac@googlemail.com>
Fri, 24 Aug 2012 21:21:31 +0000 (23:21 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Fri, 24 Aug 2012 21:27:03 +0000 (23:27 +0200)
commit09775ec745e825d248c982396ad36a9bd63aa255
tree47062f84f3c244a3af1aedef664c3c1f21b8b720
parent2727715cdd8aa738f4b5f0bbcca55a9d249be77b
Do not crash when finishing inline renaming in unusual ways

The crash was caused by a null pointer dereference when, e.g.,
minimizing Dolphin. The root cause was that
KStandardItemListWidget::closeRoleEditor() was called twice: once when
the role editor loses focus, and once again when the window is resized.
After m_roleEditor was set to 0, the second call dereferenced this null
pointer. I think the best solution is to disconnect from the role
editor's signals when the editor is not needed any more by the
KStandardItemListWidget.

BUG: 304524
FIXED-IN: 4.9.1
src/kitemviews/kstandarditemlistwidget.cpp