forked from qt-creator/qt-creator
QmlDebug: Fix crash on app closing
Make sure that the engineClient object is the parent of all of its queries, since the destructor of a query might try to access the client ... Reviewed-by: Christiaan Janssen Task-number: QTCREATORBUG-4105
This commit is contained in:
@@ -271,7 +271,7 @@ void InspectorUi::showDebuggerTooltip(const QPoint &mousePos, TextEditor::ITextE
|
||||
}
|
||||
|
||||
if (!query.isEmpty()) {
|
||||
m_debugQuery = m_clientProxy->queryExpressionResult(ref.debugId(),query, this);
|
||||
m_debugQuery = m_clientProxy->queryExpressionResult(ref.debugId(), query);
|
||||
connect(m_debugQuery, SIGNAL(stateChanged(QDeclarativeDebugQuery::State)),
|
||||
this, SLOT(debugQueryUpdated(QDeclarativeDebugQuery::State)));
|
||||
}
|
||||
@@ -630,7 +630,7 @@ void InspectorUi::selectItems(const QList<int> &objectIds)
|
||||
void InspectorUi::changePropertyValue(int debugId,const QString &propertyName, const QString &valueExpression)
|
||||
{
|
||||
QString query = propertyName + '=' + valueExpression;
|
||||
m_clientProxy->queryExpressionResult(debugId, query, this);
|
||||
m_clientProxy->queryExpressionResult(debugId, query);
|
||||
}
|
||||
|
||||
void InspectorUi::enable()
|
||||
|
||||
Reference in New Issue
Block a user