summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-01-04 11:26:16 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-01-04 11:26:16 (GMT)
commitf46115cb9ea10ee9abdbebff71cf8d6694f9fde9 (patch)
tree847d8874ceef3eb3ad7e8bb5843bd46ff4ebb8c5 /tools/linguist
parent4c486619517cea4012a157995bce197c817d83e5 (diff)
downloadQt-f46115cb9ea10ee9abdbebff71cf8d6694f9fde9.zip
Qt-f46115cb9ea10ee9abdbebff71cf8d6694f9fde9.tar.gz
Qt-f46115cb9ea10ee9abdbebff71cf8d6694f9fde9.tar.bz2
do not accumulate messages
Task-number: QTBUG-6588
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/lrelease/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/linguist/lrelease/main.cpp b/tools/linguist/lrelease/main.cpp
index b8e8eb2..2ab4a5e 100644
--- a/tools/linguist/lrelease/main.cpp
+++ b/tools/linguist/lrelease/main.cpp
@@ -111,6 +111,7 @@ static bool loadTsFile(Translator &tor, const QString &tsFileName, bool /* verbo
if (!cd.errors().isEmpty())
printOut(cd.error());
}
+ cd.clearErrors();
return ok;
}
@@ -141,11 +142,11 @@ static bool releaseTranslator(Translator &tor, const QString &qmFileName,
if (!ok) {
qWarning("lrelease error: cannot save '%s': %s\n",
qPrintable(qmFileName), qPrintable(cd.error()));
- return false;
} else if (!cd.errors().isEmpty()) {
printOut(cd.error());
}
- return true;
+ cd.clearErrors();
+ return ok;
}
static bool releaseTsFile(const QString& tsFileName,