qmldebugger: avoid loading tcp module in inspector
authorFawzi Mohamed <fawzi.mohamed@digia.com>
Mon, 10 Mar 2014 18:29:06 +0000 (19:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Mar 2014 18:59:05 +0000 (19:59 +0100)
loading the module twice starts two threads, and creates issues
when unloading.

Change-Id: I861df6a6b6a8942557d31d455b35e7987478a527
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
src/qml/debugger/qqmlinspectorservice.cpp

index b48af34d577a870fca3fa45a2ce5e637bfe373aa..5486258ae4476a0c121a534ceb4f24a9dd661ddb 100644 (file)
@@ -157,6 +157,8 @@ void QQmlInspectorService::loadInspectorPlugins()
     }
 
     foreach (const QString &pluginPath, pluginCandidates) {
+        if (pluginPath.contains(QLatin1String("qmldbg_tcp")))
+            continue;
         if (qmlDebugVerbose())
             qDebug() << "QQmlInspector: Trying to load plugin " << pluginPath << "...";