From 9ebad7934c70583a3b3b91fd3eef074b79775454 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 24 Jul 2013 19:46:53 +0200 Subject: [PATCH] don't complain about non-EEXIST io errors twice simply use the new parser flags to report all errors directly. Change-Id: I9156da340913cb2cdd3465d99ad81321232192e5 Reviewed-by: Joerg Bornemann --- src/linguist/lrelease/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/linguist/lrelease/main.cpp b/src/linguist/lrelease/main.cpp index f3cd862..f5ed9bd 100644 --- a/src/linguist/lrelease/main.cpp +++ b/src/linguist/lrelease/main.cpp @@ -322,10 +322,8 @@ int main(int argc, char **argv) visitor.setOutputDir(QDir::currentPath()); ProFile *pro; - if (!(pro = parser.parsedProFile(QDir::cleanPath(fi.absoluteFilePath())))) { - printErr(LR::tr( - "lrelease error: cannot read project file '%1'.\n") - .arg(inputFile)); + if (!(pro = parser.parsedProFile(QDir::cleanPath(fi.absoluteFilePath()), + QMakeParser::ParseReportMissing))) { continue; } if (!visitor.accept(pro)) { -- 2.7.4