Bug 139617 - Matrix selector is not updated when matrix is deleted
Summary: Matrix selector is not updated when matrix is deleted
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-05 01:06 UTC by Andrew Walker
Modified: 2007-01-05 01:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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