forked from qt-creator/qt-creator
QmlDesigner: crash fix
It was a very stupid idea to call QApplication::processEvents(); here to avoid hickups. The processEvents() forces the whole designDocumentController managment to be be reentrant which it clearly is not (and should not be). The reason is simply that resetView is called from there. Adding a "flag" for the processEvents is also not a reasonable option. This was just very bad style. So I remove it. Task-number: QTCREATORBUG-7120 Change-Id: I111cf9421f63b9ce44488f0d274624ff48777cef Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -224,7 +224,6 @@ void PropertyEditor::NodeType::setup(const QmlObjectNode &fxObjectNode, const QS
|
|||||||
m_contextObject->setSpecificsUrl(qmlSpecificsFile);
|
m_contextObject->setSpecificsUrl(qmlSpecificsFile);
|
||||||
|
|
||||||
m_contextObject->setStateName(stateName);
|
m_contextObject->setStateName(stateName);
|
||||||
QApplication::processEvents();
|
|
||||||
if (!fxObjectNode.isValid())
|
if (!fxObjectNode.isValid())
|
||||||
return;
|
return;
|
||||||
ctxt->setContextProperty("propertyCount", QVariant(fxObjectNode.modelNode().properties().count()));
|
ctxt->setContextProperty("propertyCount", QVariant(fxObjectNode.modelNode().properties().count()));
|
||||||
|
Reference in New Issue
Block a user