QDeclarativeInspectorService: Call updateStatus() in GUI thread.
authorAurindam Jana <aurindam.jana@nokia.com>
Mon, 28 Nov 2011 14:41:40 +0000 (15:41 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 28 Nov 2011 19:09:38 +0000 (20:09 +0100)
Change-Id: I8eee3df9cb1b01f220827fb278d91bc3fa4332d4
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/declarative/debugger/qdeclarativeinspectorservice.cpp
src/declarative/debugger/qdeclarativeinspectorservice_p.h

index 33c9429..07fed4d 100644 (file)
@@ -89,7 +89,7 @@ void QDeclarativeInspectorService::sendMessage(const QByteArray &message)
 
 void QDeclarativeInspectorService::statusChanged(Status /*status*/)
 {
-    updateStatus();
+    QMetaObject::invokeMethod(this, "updateStatus", Qt::QueuedConnection);
 }
 
 void QDeclarativeInspectorService::updateStatus()
index 6362f5b..b22aaca 100644 (file)
@@ -85,9 +85,9 @@ protected:
 
 private slots:
     void processMessage(const QByteArray &message);
+    void updateStatus();
 
 private:
-    void updateStatus();
     void loadInspectorPlugins();
 
     QList<QObject*> m_views;