[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Tue Jun 1 20:57:30 CEST 2004


CVS commit by arwalker: 

Set the current window to the active window when the plot dialog is shown. This is most likely what the user intended.


  M +10 -2     kst.cpp   1.131


--- kdeextragear-2/kst/kst/kst.cpp  #1.130:1.131
@@ -1169,5 +1169,14 @@ void KstApp::slotTimer() {
 
 void KstApp::showPlotDialog() {
+  KMdiChildView* pWindow = activeWindow();
+  QString strWindow;
+  QString strPlot;
+  
+  if (plotDialog->isHidden() && pWindow) {
+    strWindow = pWindow->caption();
+    plotDialog->show_I(strWindow,strPlot);
+  } else {
   plotDialog->show_I();
+  }
 }
 
@@ -1334,5 +1343,4 @@ QString KstApp::newWindow(bool prompt) {
   bool ok = false;
   QString name;
-  int i=0;
 
   do {





More information about the Kst mailing list