[Kst] branches/work/kst/1.5/kst/src/kst

Andrew Walker arwalker at sumusltd.com
Tue May 8 20:30:00 CEST 2007


SVN commit 662612 by arwalker:

CCBUG:145050 Forward port from 1.4

 M  +3 -2      main.cpp  


--- branches/work/kst/1.5/kst/src/kst/main.cpp #662611:662612
@@ -383,7 +383,6 @@
     KstApp *kst = new KstApp;
     InType in;
     QColor color;
-    KstDataSourcePtr file;
     QCStringList ycolList;
     QCStringList matrixList;
     QCStringList yEqList;
@@ -517,7 +516,9 @@
         } else {
           fullPath = args->arg(i_file);
         }
-        file = KstDataSource::loadSource(fullPath);
+
+        KstDataSourcePtr file = KstDataSource::loadSource(fullPath);
+
         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