[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Sep 14 16:45:55 CEST 2005
SVN commit 460628 by staikos:
Errors should be filed as errors
M +7 -7 main.cpp
--- trunk/extragear/graphics/kst/kst/main.cpp #460627:460628
@@ -44,7 +44,7 @@
static const char description[] = I18N_NOOP("Kst: a data viewing program.");
-static QStringList strErrors;
+static QStringList startupErrors;
static KCmdLineOptions options[] = {
{"F <dataFile>", I18N_NOOP("Specify data file: used to override a kst file default"), "|"},
@@ -268,7 +268,7 @@
if (V->isValid()) {
KST::addVectorToList(V);
} else {
- strErrors.append(i18n("Failed to create vector '%1' from file '%2'.").arg(field).arg(file->fileName()));
+ startupErrors.append(i18n("Failed to create vector '%1' from file '%2'.").arg(field).arg(file->fileName()));
delete V;
V = 0L;
@@ -682,7 +682,7 @@
for (mat_i = matrixList.begin(); mat_i != matrixList.end(); ++mat_i) {
QString tag_name = KST::suggestMatrixName(*mat_i);
if (!file->isValidMatrix(*mat_i)) {
- strErrors.append(i18n("Failed to create matrix '%1' from file '%2'.").arg(*mat_i).arg(file->fileName()));
+ startupErrors.append(i18n("Failed to create matrix '%1' from file '%2'.").arg(*mat_i).arg(file->fileName()));
}
KstRMatrixPtr matrix = new KstRMatrix(file, *mat_i, tag_name,
0,0,-1,-1,false,false,0);
@@ -719,7 +719,7 @@
}
}
} else {
- strErrors.append(i18n("Failed to load file '%1'.").arg(args->arg(i_file)));
+ startupErrors.append(i18n("Failed to load file '%1'.").arg(args->arg(i_file)));
}
handled++;
kst->slotUpdateProgress( count, handled, creatingCurves );
@@ -786,10 +786,10 @@
if (showDataWizard) {
kst->showDataWizardWithFile(wizardfile);
}
- for (size_t i=0; i<strErrors.size(); i++) {
- KstDebug::self()->log(strErrors[i], KstDebug::Warning);
+ for (size_t i = 0; i < startupErrors.size(); ++i) {
+ KstDebug::self()->log(startupErrors[i], KstDebug::Error);
}
- strErrors.clear();
+ startupErrors.clear();
}
// LEAVE THIS HERE - causes crashes otherwise!
More information about the Kst
mailing list