Bug 139617

Summary: Matrix selector is not updated when matrix is deleted
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andrew Walker 2007-01-05 01:06:24 UTC
Version:           HEAD (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:
When a matrix is deleted from the data manager the corresponding entry in any open matrix selectors is not removed.

STEPS TO REPRODUCE:
Start Kst
Create a matrix using Data... New Matrix... (choosing generate gradient is simpler)
Open the New Image dialog using Data... New Image...
Open the data manager and delete the created matrix

RESULTS:
The matrix selector im the New Image dialog still shows the matrix

EXPECTED RESULTS:
The matrix selector in the New Image dialog should be empty
Comment 1 Andrew Walker 2007-01-05 01:15:59 UTC
SVN commit 620005 by arwalker:

BUG:139617 Need to call doUpdates() when a matrix is deleted as well as when a vector is deleted.

 M  +2 -0      kstdatamanager_i.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstdatamanager_i.cpp #620004:620005
@@ -829,10 +829,12 @@
       KST::matrixList.lock().writeLock();
       KST::matrixList.removeTag(koi->tagName());
       KST::matrixList.lock().unlock();  
+      doUpdates();
     } else if (qi->rtti() == RTTI_OBJ_STATIC_MATRIX) {
       KST::matrixList.lock().writeLock();
       KST::matrixList.removeTag(koi->tagName());
       KST::matrixList.lock().unlock();  
+      doUpdates();
     }
     update();
   } else {