summaryrefslogtreecommitdiff
path: root/src/plugins/designer/formeditorw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/designer/formeditorw.cpp')
-rw-r--r--src/plugins/designer/formeditorw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/designer/formeditorw.cpp b/src/plugins/designer/formeditorw.cpp
index 9e22601ba9..b893149682 100644
--- a/src/plugins/designer/formeditorw.cpp
+++ b/src/plugins/designer/formeditorw.cpp
@@ -728,7 +728,7 @@ void FormEditorW::currentEditorChanged(IEditor *editor)
if (Designer::Constants::Internal::debug)
qDebug() << Q_FUNC_INFO << editor << " of " << m_fwm->formWindowCount();
- if (editor && editor->id() == Constants::K_DESIGNER_XML_EDITOR_ID) {
+ if (editor && editor->document()->id() == Constants::K_DESIGNER_XML_EDITOR_ID) {
FormWindowEditor *xmlEditor = qobject_cast<FormWindowEditor *>(editor);
QTC_ASSERT(xmlEditor, return);
ensureInitStage(FullyInitialized);