forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.10'
Change-Id: Iaf27911e4e9fb762c1a24c84c458462bafe95728
This commit is contained in:
@@ -320,7 +320,7 @@ QmlEngine::~QmlEngine()
|
||||
if (textEditPtr)
|
||||
documentsToClose << textEditPtr.data()->document();
|
||||
}
|
||||
EditorManager::closeDocuments(documentsToClose.toList());
|
||||
EditorManager::closeDocuments(Utils::toList(documentsToClose));
|
||||
|
||||
delete d;
|
||||
}
|
||||
|
||||
@@ -260,7 +260,8 @@ void QmlInspectorAgent::onResult(quint32 queryId, const QVariant &value,
|
||||
} else {
|
||||
int index = m_rootContextQueryIds.indexOf(queryId);
|
||||
if (index < 0) {
|
||||
m_qmlEngine->expressionEvaluated(queryId, value);
|
||||
if (QTC_GUARD(m_qmlEngine))
|
||||
m_qmlEngine->expressionEvaluated(queryId, value);
|
||||
} else {
|
||||
Q_ASSERT(index < m_engines.length());
|
||||
const int engineId = m_engines.at(index).debugId();
|
||||
|
||||
Reference in New Issue
Block a user