diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-03-22 11:32:21 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-03-22 11:32:21 +0100 |
commit | 6579d1d8c34e81aaec258d704f3baae03ab55d91 (patch) | |
tree | 7a1e868044e1042d16e1a8a4f3ea5938283d37aa /src/plugins/qmldesigner/components/stateseditor/stateseditorview.h | |
parent | e1e8e9fdf30d4730eee284dc67dec296fce2b315 (diff) | |
download | qt-creator-6579d1d8c34e81aaec258d704f3baae03ab55d91.tar.gz |
QmlDesginer.statesEditor: avoid crashes during reattaching model
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor/stateseditorview.h')
-rw-r--r-- | src/plugins/qmldesigner/components/stateseditor/stateseditorview.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h index 003035078f..44bc5b6ac6 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.h @@ -53,6 +53,7 @@ public: QPixmap renderState(int i); QmlItemNode stateRootNode() { return m_stateRootNode; } + bool isAttachedToModel() const { return m_attachedToModel; } protected: // AbstractView @@ -95,6 +96,7 @@ private: QList<int> m_updateTimerIdList; QmlModelState m_oldRewriterAmendState; + bool m_attachedToModel; }; } // namespace Internal |