[Kst] extragear/graphics/kst/kst
Ted Kisner
tskisner.public at gmail.com
Sat Nov 5 07:29:13 CET 2005
SVN commit 477796 by tskisner:
Actually, this is broken as well. What if I do kst -x 1 -y 2 someotherdirectory/data.txt? I am reversing this for now- need to query the absolute path to the datafile.
M +1 -6 main.cpp
--- trunk/extragear/graphics/kst/kst/main.cpp #477795:477796
@@ -385,9 +385,6 @@
bool nOK;
int n_y = 0;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
- QString cwd = args->cwd();
- cwd.append("/");
- QString path;
CheckForCMDErrors(args);
@@ -497,9 +494,7 @@
for (i_curve = i_v = 0, i_file = 0; i_file < args->count(); i_file++) {
// make the file
- path = cwd;
- path.append(args->arg(i_file));
- file = KstDataSource::loadSource(path);
+ file = KstDataSource::loadSource(args->arg(i_file));
if (file) {
if (!file->isValid() || file->isEmpty()) {
kstdError() << i18n("No data in file %1. Trying to continue...").arg(args->arg(i_file)) << endl;
More information about the Kst
mailing list