forked from qt-creator/qt-creator
fixed crash when changing b/w edit/design mode while QML Designer is loading
This commit is contained in:
@@ -287,7 +287,6 @@ void PropertyEditor::setupPane(const QString &typeName)
|
|||||||
ctxt->setContextProperty("finishedNotify", QVariant(true) );
|
ctxt->setContextProperty("finishedNotify", QVariant(true) );
|
||||||
|
|
||||||
}
|
}
|
||||||
QApplication::processEvents();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertyEditor::changeValue(const QString &propertyName)
|
void PropertyEditor::changeValue(const QString &propertyName)
|
||||||
|
|||||||
@@ -533,8 +533,7 @@ void DesignModeWidget::showEditor(Core::IEditor *editor)
|
|||||||
|
|
||||||
documentWidget = new DocumentWidget(textEditor, textEdit, newDocument, this);
|
documentWidget = new DocumentWidget(textEditor, textEdit, newDocument, this);
|
||||||
connect(documentWidget->document(), SIGNAL(undoAvailable(bool)),
|
connect(documentWidget->document(), SIGNAL(undoAvailable(bool)),
|
||||||
this, SLOT
|
this, SLOT(undoAvailable(bool)));
|
||||||
(undoAvailable(bool)));
|
|
||||||
connect(documentWidget->document(), SIGNAL(redoAvailable(bool)),
|
connect(documentWidget->document(), SIGNAL(redoAvailable(bool)),
|
||||||
this, SLOT(redoAvailable(bool)));
|
this, SLOT(redoAvailable(bool)));
|
||||||
// connect(documentWidget->document(), SIGNAL(deleteAvailable(bool)),
|
// connect(documentWidget->document(), SIGNAL(deleteAvailable(bool)),
|
||||||
|
|||||||
Reference in New Issue
Block a user