summaryrefslogtreecommitdiff
path: root/src/plugins/designer/editorwidget.h
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2009-08-11 11:58:19 +0200
committercon <qtc-committer@nokia.com>2009-08-11 16:38:53 +0200
commit0624fb56083ba872191dc7f67aae771efce0aeb1 (patch)
tree3fdc0ebb6eff0bb72ec3f4bd51d6b8ebce9b62b1 /src/plugins/designer/editorwidget.h
parent5435b096223a930aeef496c501cd5d32ca697a01 (diff)
downloadqt-creator-0624fb56083ba872191dc7f67aae771efce0aeb1.tar.gz
Be more robust wrt restoring settings.
Make sure that we give the QMainWindow always a valid layout before restoring settings, so if something goes wrong with that, we don't end up with a broken layout.
Diffstat (limited to 'src/plugins/designer/editorwidget.h')
-rw-r--r--src/plugins/designer/editorwidget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/designer/editorwidget.h b/src/plugins/designer/editorwidget.h
index ca3965a812..a18e86166a 100644
--- a/src/plugins/designer/editorwidget.h
+++ b/src/plugins/designer/editorwidget.h
@@ -93,6 +93,7 @@ private:
SharedSubWindow* m_designerSubWindows[Designer::Constants::DesignerSubWindowCount];
QDockWidget *m_designerDockWidgets[Designer::Constants::DesignerSubWindowCount];
Core::Utils::FancyMainWindow *m_mainWindow;
+ bool m_initialized;
static QHash<QString, QVariant> m_globalState;
};