[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Sat Dec 11 04:48:05 CET 2004


CVS commit by netterfield: 

OPTIMIZE:
don't update dialogs on contect menu events.  Only delete plot and
remove curve can benefit from it, and they call update directly.


  M +4 -2      kstviewwidget.cpp   1.57


--- kdeextragear-2/kst/kst/kstviewwidget.cpp  #1.56:1.57
@@ -256,5 +256,8 @@ void KstViewWidget::contextMenuEvent(QCo
     }
     // for convenience, let's update the dialogs
-    QTimer::singleShot(0, KstApp::inst(), SLOT(updateDialogs()));
+    // NO: updateDialogs takes ~250ms... and I don't think we need it here...
+    // but this means that if any of the events need an update, they
+    // will have to generate it themselves...
+    //QTimer::singleShot(0, KstApp::inst(), SLOT(updateDialogs()));
   } else {
     delete _menu;





More information about the Kst mailing list