mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-15 18:30:58 +01:00
Fix regression in opening detached processes.
This commit is contained in:
parent
8af1f2dfe4
commit
80c5280c6a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user