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()))