From 72fcfba1d5ad314f06b1f231a3c93413b30d08f5 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. Change-Id: Id39882e4e955bd54328c8e747377b9d49f977378 Reviewed-by: Qt CI Bot Reviewed-by: Thiago Macieira (cherry picked from commit f071421558c751dc03c338f3271546c459ed9209) Reviewed-by: Qt Cherry-pick Bot --- 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 4a82f9b64ca..f8ee49d6ce3 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()))