[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Jun 24 20:18:04 CEST 2004


CVS commit by arwalker: 

Makre sure we can function from the command line by creating a default window if there isn't one.


  M +12 -2     main.cpp   1.65


--- kdeextragear-2/kst/kst/main.cpp  #1.64:1.65
@@ -369,4 +370,13 @@ int main(int argc, char *argv[]) {
 
       KstTopLevelViewPtr tlv = kst->activeView();
+
+      if (!tlv) {
+        //
+        // if there was no active view then we create one...
+        //
+        kst->newWindow();
+        tlv = kst->activeView();
+      }
+
       if (!tlv) {
         exit(0);





More information about the Kst mailing list