Bug 124444

Summary: Crash when click on where deleted object used to be
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andrew Walker 2006-03-28 21:44:32 UTC
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
Comment 1 Andrew Walker 2006-03-28 21:46:12 UTC
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();