[Kst] branches/kst/1.3/kst/src/kst

George Staikos staikos at kde.org
Sat Sep 16 14:59:21 CEST 2006


SVN commit 585167 by staikos:

only search for fields if it's stdin


 M  +7 -3      main.cpp  


--- branches/kst/1.3/kst/src/kst/main.cpp #585166:585167
@@ -271,10 +271,14 @@
 
   V = new KstRVector(file, field, KST::suggestVectorName(field), in.f, in.n, in.skip, in.doskip, in.doave);
   if (!V->isValid()) {
-    startupErrors.append(i18n("Failed to create vector '%1' from file '%2'.  Trying again later.").arg(field).arg(file->fileName()));
-
+    if (file->fileType() == "stdin") {
+      startupErrors.append(i18n("Failed to create vector '%1' from file '%2'.  Trying again later.").arg(field).arg(file->fileName()));
+      KST::addVectorToList(V);
+    } else {
+      startupErrors.append(i18n("Failed to create vector '%1' from file '%2'.").arg(field).arg(file->fileName()));
+      V = 0L;
+    }
   }
-  KST::addVectorToList(V);
 
   return V;
 }


More information about the Kst mailing list