Fix regression in opening detached processes.

This commit is contained in:
Martin Rotter 2020-11-29 18:54:46 +01:00
parent 8af1f2dfe4
commit 80c5280c6a

View File

@ -81,10 +81,13 @@ bool IOFactory::startProcessDetached(const QString& program, const QStringList&
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC) #if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
process.setNativeArguments(native_arguments); process.setNativeArguments(native_arguments);
#else #else
Q_UNUSED(native_arguments) if (arguments.isEmpty() && !native_arguments.isEmpty()) {
process.setArguments({ native_arguments });
}
#endif #endif
process.setWorkingDirectory(working_directory); process.setWorkingDirectory(working_directory);
return process.startDetached(nullptr); return process.startDetached(nullptr);
} }