QmlDebugServer: Ensure plugin is set
authorAurindam Jana <aurindam.jana@digia.com>
Mon, 15 Apr 2013 08:53:10 +0000 (10:53 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 16 Apr 2013 07:16:48 +0000 (09:16 +0200)
Change-Id: Ibc0e5ed626edc076e96c4848994ba0cafba0f5c6
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
src/qml/debugger/qqmldebugserver.cpp

index 27e3d22..e263343 100644 (file)
@@ -298,6 +298,7 @@ QQmlDebugServer *QQmlDebugServer::instance()
             for (; argsIt != argsItEnd; ++argsIt) {
                 const QString strArgument = *argsIt;
                 if (strArgument.startsWith(QLatin1String("port:"))) {
+                    pluginName = QLatin1String("qmldbg_tcp");
                     portFrom = strArgument.mid(5).toInt(&ok);
                     portTo = portFrom;
                     QStringList::const_iterator argsNext = argsIt + 1;
@@ -308,7 +309,6 @@ QQmlDebugServer *QQmlDebugServer::instance()
                         portTo = nextArgument.toInt(&ok);
                         ++argsIt;
                     }
-                    pluginName = QLatin1String("qmldbg_tcp");
                 } else if (strArgument.startsWith(QLatin1String("host:"))) {
                     hostAddress = strArgument.mid(5);
                 } else if (strArgument == QLatin1String("block")) {