[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri Aug 27 19:38:42 CEST 2004
CVS commit by arwalker:
Ensure that a plot that is deleted from the right-click context menu is propery destroyed.
M +9 -0 ksttoplevelview.cpp 1.76
M +1 -0 ksttoplevelview.h 1.44
--- kdeextragear-2/kst/kst/ksttoplevelview.cpp #1.75:1.76
@@ -926,4 +926,13 @@ void KstTopLevelView::cancelMouseOperati
+bool KstTopLevelView::removeChild(KstViewObjectPtr obj, bool recursive) {
+ if (_pressTarget == obj) {
+ _pressTarget = 0L;
+ }
+
+ return KstViewObject::removeChild(obj, recursive);
+}
+
+
void KstTopLevelView::cleanup(int cols) {
KstViewObject::cleanup(cols);
--- kdeextragear-2/kst/kst/ksttoplevelview.h #1.43:1.44
@@ -60,4 +60,5 @@ class KstTopLevelView : public KstViewOb
template<class T> KstSharedPtr<T> createPlot(const QString& name);
+ virtual bool removeChild(KstViewObjectPtr obj, bool recursive = false);
virtual void cleanup(int cols = -1);
More information about the Kst
mailing list