[Kst] extragear/graphics/kst/src/kst

George Staikos staikos at kde.org
Sat Sep 16 14:58:36 CEST 2006


SVN commit 585166 by staikos:

only apply the "try again later" technique for missing fields with stdin

  -> would it make more sense to do this for sources that don't have well-
  defined field lists?


 M  +7 -3      main.cpp  


--- trunk/extragear/graphics/kst/src/kst/main.cpp #585165:585166
@@ -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