summaryrefslogtreecommitdiffstats
path: root/src/tools/rcc
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-05-20 13:19:21 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-05-21 23:15:42 +0200
commitc3b5ca129af42056184670e154c5dd17762e41f8 (patch)
treeeff202bd4c804c7a90604633b737e847c6890599 /src/tools/rcc
parent4da22d6534c7499274bc303252ef290efba1a3a5 (diff)
rcc: Fix error message when temporary file cannot be opened
If rcc cannot open the file passed with --temp, display the path of the temporary file, not the one of the output file. Pick-to: 6.1 Change-Id: I58f8ab2f68ac2f1a19feb6b02974dff9fc8b7ec1 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/tools/rcc')
-rw-r--r--src/tools/rcc/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rcc/main.cpp b/src/tools/rcc/main.cpp
index 287be43f97..45a5150842 100644
--- a/src/tools/rcc/main.cpp
+++ b/src/tools/rcc/main.cpp
@@ -420,7 +420,7 @@ int runRcc(int argc, char *argv[])
temp.setFileName(tempFilename);
if (!temp.open(QIODevice::ReadOnly)) {
const QString msg = QString::fromUtf8("Unable to open temporary file %1 for reading: %2\n")
- .arg(outFilename, out.errorString());
+ .arg(tempFilename, out.errorString());
errorDevice.write(msg.toUtf8());
return 1;
}