From c3b5ca129af42056184670e154c5dd17762e41f8 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Thu, 20 May 2021 13:19:21 +0200 Subject: 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 --- src/tools/rcc/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/rcc') 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; } -- cgit v1.2.3