[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Sat Sep 4 04:17:16 CEST 2004


CVS commit by arwalker: 

Make sure we can cancel creation of a new window.


  M +5 -1      kst.cpp   1.230


--- kdeextragear-2/kst/kst/kst.cpp  #1.229:1.230
@@ -1489,6 +1489,10 @@ QString KstApp::windowName(bool prompt, 
 QString KstApp::newWindow(bool prompt) {
   QString nameUsed;
+  QString name;
 
-  nameUsed = newWindow(windowName(prompt, defaultTag));
+  name = windowName(prompt, defaultTag);
+  if (!name.isEmpty()) {
+    nameUsed = newWindow(name);
+  }
 
   return nameUsed;





More information about the Kst mailing list