Bug 124444 - Crash when click on where deleted object used to be
Summary: Crash when click on where deleted object used to be
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 21:44 UTC by Andrew Walker
Modified: 2006-03-28 21:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();