From f071421558c751dc03c338f3271546c459ed9209 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Tue, 3 Jan 2023 19:06:07 +0100 Subject: [PATCH] Check if "-stagingDir" is passed from the command Check if "-stagingDir" is passed from the command line before trying to copy files to it. Pick-to: 6.5 Change-Id: Id39882e4e955bd54328c8e747377b9d49f977378 Reviewed-by: Qt CI Bot Reviewed-by: Thiago Macieira --- src/tools/syncqt/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 4a82f9b64c..f8ee49d6ce 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -649,7 +649,7 @@ public: error = SyncFailed; } - if (!m_commandLineArgs->scanAllMode()) { + if (!m_commandLineArgs->scanAllMode() && !m_commandLineArgs->stagingDir().empty()) { // Copy the generated files to a spearate staging directory to make the installation // process eaiser. if (!copyGeneratedHeadersToStagingDirectory(m_commandLineArgs->stagingDir()))