From aca0e939b35053db96391629783d991a2e930b4f Mon Sep 17 00:00:00 2001 From: kh1 Date: Thu, 19 Jun 2014 13:10:57 +0200 Subject: Initialize both client and server with default values. Change-Id: I51934b0de77b1062153f5f60be44d4bcf4be5ee5 Reviewed-by: Kai Koehne --- src/libs/installer/remoteserver.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/libs/installer/remoteserver.cpp') diff --git a/src/libs/installer/remoteserver.cpp b/src/libs/installer/remoteserver.cpp index 2bd74c03a..3233e92ca 100644 --- a/src/libs/installer/remoteserver.cpp +++ b/src/libs/installer/remoteserver.cpp @@ -40,8 +40,6 @@ **************************************************************************/ #include "remoteserver.h" - -#include "protocol.h" #include "remoteserver_p.h" namespace QInstaller { @@ -75,11 +73,9 @@ void RemoteServer::start() connect (d->m_tcpServer, SIGNAL(newIncommingConnection()), this, SLOT(restartWatchdog())); d->m_thread.start(); - if (d->m_mode == RemoteServer::Release) { + if (d->m_mode == Protocol::Mode::Release) { connect(d->m_watchdog.data(), SIGNAL(timeout()), this, SLOT(deleteLater())); d->m_watchdog->start(); - } else { - setAuthorizationKey(QLatin1String(Protocol::DebugAuthorizationKey)); } } @@ -101,7 +97,7 @@ void RemoteServer::setAuthorizationKey(const QString &authorizationKey) d->m_key = authorizationKey; } -void RemoteServer::init(quint16 port, const QHostAddress &address, Mode mode) +void RemoteServer::init(quint16 port, const QHostAddress &address, Protocol::Mode mode) { Q_D(RemoteServer); d->m_port = port; -- cgit v1.2.3