From 8bdfb2474b8209517e2ff5a5c8e71a9e57161e0d Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 14 Nov 2017 19:04:06 +0100 Subject: [PATCH] Ref T192, starting launcher inherites CMD arguments --- src/blackcore/application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blackcore/application.cpp b/src/blackcore/application.cpp index 3c62ed9dd..e9958dcef 100644 --- a/src/blackcore/application.cpp +++ b/src/blackcore/application.cpp @@ -297,7 +297,9 @@ namespace BlackCore { static const QString launcher = CApplication::getExecutableForApplication(CApplicationInfo::Application::Laucher); if (launcher.isEmpty() || CApplication::isApplicationRunning(CApplicationInfo::Laucher)) { return false; } - return QProcess::startDetached(launcher); + + const QStringList args = this->inheritedArguments(true); + return QProcess::startDetached(launcher, args); } bool CApplication::isUnitTest() const