mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-16 02:41:11 +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)
|
#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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user