[Kst] branches/work/kst/1.1/kst/kst

George Staikos staikos at kde.org
Mon Sep 12 18:09:12 CEST 2005


SVN commit 459976 by staikos:

memory leak fix backports


 M  +4 -0      kstfilterdialog_i.cpp  
 M  +2 -0      kstfitdialog_i.cpp  
 M  +4 -0      kstplugindialog_i.cpp  


--- branches/work/kst/1.1/kst/kst/kstfilterdialog_i.cpp #459975:459976
@@ -383,6 +383,7 @@
         w->allowDirectEntry(true);
         if (p) {
           p->readLock();
+          QToolTip::remove(w->_scalar);
           QToolTip::add(w->_scalar, QString::number(p->value()));
           p->readUnlock();
         }
@@ -399,6 +400,7 @@
         w->allowDirectEntry(true);
         if (p) {
           p->readLock();
+          QToolTip::remove(w->_string);
           QToolTip::add(w->_string, p->value());
           p->readUnlock();
         }
@@ -424,6 +426,8 @@
     widget->show();
 
     if (!(*it)._description.isEmpty()) {
+      QWhatsThis::remove(label);
+      QWhatsThis::remove(widget);
       QWhatsThis::add(label, (*it)._description);
       QWhatsThis::add(widget, (*it)._description);
     }
--- branches/work/kst/1.1/kst/kst/kstfitdialog_i.cpp #459975:459976
@@ -376,6 +376,8 @@
     widget->show();
     
     if (!(*it)._description.isEmpty()) {
+      QWhatsThis::remove(label);
+      QWhatsThis::remove(widget);
       QWhatsThis::add(label, (*it)._description);
       QWhatsThis::add(widget, (*it)._description);
     }
--- branches/work/kst/1.1/kst/kst/kstplugindialog_i.cpp #459975:459976
@@ -746,6 +746,7 @@
         w->allowDirectEntry(true);
         if (p) {
           p->readLock();
+          QToolTip::remove(w->_scalar);
           QToolTip::add(w->_scalar, QString::number(p->value()));
           p->readUnlock();
         }
@@ -762,6 +763,7 @@
         w->allowDirectEntry(true);
         if (p) {
           p->readLock();
+          QToolTip::remove(w->_string);
           QToolTip::add(w->_string, p->value());
           p->readUnlock();
         }
@@ -782,6 +784,8 @@
     widget->show();
 
     if (!(*it)._description.isEmpty()) {
+      QWhatsThis::remove(label);
+      QWhatsThis::remove(widget);
       QWhatsThis::add(label, (*it)._description);
       QWhatsThis::add(widget, (*it)._description);
     }


More information about the Kst mailing list