[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Thu Aug 12 16:34:23 CEST 2010


SVN commit 1162737 by kuemmel:

on windows we need the final slash for e.g. "c:/"

 M  +2 -2      mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1162736:1162737
@@ -205,7 +205,7 @@
     return;
   }
   QString restorePath = QDir::currentPath();
-  QString kstfiledir = fn.left(fn.lastIndexOf("/"));
+  QString kstfiledir = fn.left(fn.lastIndexOf("/")) + "/";
   QDir::setCurrent(kstfiledir);
   QString currentP = QDir::currentPath();
   _doc->save(fn);
@@ -249,7 +249,7 @@
     return;
   }
   settings.setValue(lastKey, fn);
-  QDir::setCurrent(fn.left(fn.lastIndexOf("/")));
+  QDir::setCurrent(fn.left(fn.lastIndexOf("/")) + "/");
   openFile(fn);
   setWindowTitle("Kst - " + fn);
 }


More information about the Kst mailing list