fixed crash when changing b/w edit/design mode while QML Designer is loading

This commit is contained in:
Lasse Holmstedt
2010-03-01 13:10:32 +01:00
parent 8951d66168
commit 079897f295
2 changed files with 1 additions and 3 deletions

View File

@@ -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)

View File

@@ -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)),