summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/remoteclient_p.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2020-03-30 09:37:14 +0300
committerKatja Marttila <katja.marttila@qt.io>2020-03-31 12:05:27 +0300
commit1ebd5704affd293995aabcb4d7604a704602ce85 (patch)
treeac4fb843800d5825c491e8cf1dbafe3b3c26f655 /src/libs/installer/remoteclient_p.h
parentb5022c36b878c13861378ab2d9970d0533a43b6a (diff)
Fix startserver argument when starting installer as admin
Task-number: QTIFW-1701 Change-Id: I1ae59a0a352578918a718d89ce600f4e41910306 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/remoteclient_p.h')
-rw-r--r--src/libs/installer/remoteclient_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/installer/remoteclient_p.h b/src/libs/installer/remoteclient_p.h
index ed1731342..9b5bfd844 100644
--- a/src/libs/installer/remoteclient_p.h
+++ b/src/libs/installer/remoteclient_p.h
@@ -36,6 +36,7 @@
#include "remoteclient.h"
#include "remoteobject.h"
#include "utils.h"
+#include "constants.h"
#include <QCoreApplication>
#include <QElapsedTimer>
@@ -85,7 +86,7 @@ public:
if (mode == Protocol::Mode::Production) {
m_startServerAs = startAs;
m_serverCommand = QCoreApplication::applicationFilePath();
- m_serverArguments = QStringList() << QLatin1String("--startserver")
+ m_serverArguments = QStringList() << QLatin1String("--") + CommandLineOptions::scStartServerLong
<< QString::fromLatin1("%1,%2,%3")
.arg(QLatin1String(Protocol::ModeProduction))
.arg(socketName)
@@ -98,7 +99,7 @@ public:
m_thread.start();
} else if (mode == Protocol::Mode::Debug) {
// To be able to debug the client-server connection start and stop the server manually,
- // e.g. installer --startserver DEBUG.
+ // e.g. installer --start-server DEBUG.
}
}