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

Nicolas Brisset nicolas.brisset at eurocopter.com
Wed Apr 21 08:24:05 CEST 2010


SVN commit 1117077 by brisset:

Simple one-liner to allow working with relative paths to datasources. I'm tired of keeping it around locally, and it seems to work well enough to commit.
This path allows loading files with absolute file paths. For complete functionality, we should also be able to save them :-) I think it would be nice to provide an option for that in the file save dialog. Note that it is already possible to have relative paths in 2 ways:
- hand-edit the .kst, after all xml is ASCII and easy to edit!
- use in the data wizard only relative paths, they are then stored as such.
But I still think an option when saving the .kst could/should be added.

CCBUG: 221689

 M  +1 -1      mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1117076:1117077
@@ -242,7 +242,7 @@
   if (fn.isEmpty()) {
     return;
   }
-
+  QDir::setCurrent(fn.left(fn.lastIndexOf("/")));
   openFile(fn);
   setWindowTitle("Kst - " + fn);
 }


More information about the Kst mailing list