forked from qt-creator/qt-creator
QmlDesigner: Deactivate integrated text editor in detach
We delete the integrated text editor and set the original text editor as the current one. Change-Id: I2dd6c7421d4d3078dda8ca9dae8fb04553723240 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -114,6 +114,10 @@ void TextEditorView::modelAttached(Model *model)
|
||||
void TextEditorView::modelAboutToBeDetached(Model *model)
|
||||
{
|
||||
AbstractView::modelAboutToBeDetached(model);
|
||||
|
||||
m_widget->setTextEditor(0);
|
||||
|
||||
QmlDesignerPlugin::instance()->emitCurrentTextEditorChanged(QmlDesignerPlugin::instance()->currentDesignDocument()->textEditor());
|
||||
}
|
||||
|
||||
void TextEditorView::importsChanged(const QList<Import> &/*addedImports*/, const QList<Import> &/*removedImports*/)
|
||||
|
||||
Reference in New Issue
Block a user