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
1 changed files with 4 additions and 1 deletions

View File

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