summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libs/installer/remoteclient_p.h5
-rw-r--r--src/sdk/installerbase.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/libs/installer/remoteclient_p.h b/src/libs/installer/remoteclient_p.h
index 103b60d08..9f337c555 100644
--- a/src/libs/installer/remoteclient_p.h
+++ b/src/libs/installer/remoteclient_p.h
@@ -89,11 +89,10 @@ public:
void init(quint16 port, const QString &key, Protocol::Mode mode, Protocol::StartAs startAs)
{
+ m_key = key;
+ m_port = port;
m_mode = mode;
if (mode == Protocol::Mode::Production) {
- m_key = key;
- m_port = port;
- m_mode = mode;
m_startServerAs = startAs;
m_serverCommand = QCoreApplication::applicationFilePath();
m_serverArguments = QStringList() << QLatin1String("--startserver")
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp
index c1822c470..4357c4fab 100644
--- a/src/sdk/installerbase.cpp
+++ b/src/sdk/installerbase.cpp
@@ -116,7 +116,7 @@ int InstallerBase::run()
SDKApp::registerMetaResources(manager.collectionByName("QResources"));
if (parser.isSet(QLatin1String(CommandLineOptions::StartClient))) {
- const QStringList arguments = parser.value(QLatin1String(CommandLineOptions::StartServer))
+ const QStringList arguments = parser.value(QLatin1String(CommandLineOptions::StartClient))
.split(QLatin1Char(','), QString::SkipEmptyParts);
m_core = new QInstaller::PackageManagerCore(magicMarker, oldOperations, QString(arguments
.value(0, QString::number(QInstaller::Protocol::DefaultPort))).toInt(),