data sources are stored with absolute paths in the .kst project file. This leads to strange behavior when moving a folder in which both the source and kst files are. Another situation in which this behavior make kst fail to find the source files is when mounting a drive on a different mount point. I propose to save the source files relative to the kst file location. Reproducible: Always
This should no longer be the case since commit 1162736 from 2010-08-12, which should correspond to an early version 2.0. I have just tried here and with ASCII and netcdf I get both relative and absolute file paths. Could you please describe the bug in a more detailed way?
I analyzed the problem again and found out that for some files the relative path is working and for some not. It seems that under some conditions that the relative path is wrong and relative to my home directory instead of being relative to the kst file.
In addition to my last post: currently i am not able to reproduce this behavior.
Funny enough, no later than today a colleague of mine came to the same conclusion: if you call up the kst file from another directory, the relative path will not work. Should be easy to fix.
SVN commit 1356655 by brisset: Set the current directory at the right place so that the "fileRelative" attribute saved in the .kst file always works, even when kst2 is called from a different dir than the one where the .kst resides. Fix some indentation issues on the way. M +2 -1 document.cpp M +1 -5 mainwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1356655