Version: HEAD (using KDE KDE 3.5.0) Installed from: Compiled From Sources OS: Linux PROBLEM: Kst crashes when the user clicks on the area where an object has been just deleted STEPS TO REPRODUCE: Start Kst Create a rectangle Go to layout mode Select the rectangle Hit the delete key Left-click on where the object used to be RESULTS: Crash EXPECTED RESULTS: No crash
SVN commit 523676 by arwalker: BUG:124444 Reset the focus while deleting the selected objects. M +3 -0 ksttoplevelview.cpp --- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp #523675:523676 @@ -1600,6 +1600,9 @@ toBeDeleted.push_front(*it); } } + + clearFocus(); + while (!toBeDeleted.isEmpty()) { removeChild(toBeDeleted.front()); toBeDeleted.pop_front();