diff options
author | Olivier Goffart <[email protected]> | 2010-08-16 19:03:54 +0200 |
---|---|---|
committer | Olivier Goffart <[email protected]> | 2010-08-16 19:04:05 +0200 |
commit | 392f86786d09a6320ac7d9905f201fd297914449 (patch) | |
tree | bc5a9ab39ec6647ebe9aa975e018f29b05b75a75 /src/tools/qml | |
parent | 573006f3707247980c8eace6682352acb53f51c7 (diff) |
qmlobserver: fix crash in -frameless
Diffstat (limited to 'src/tools/qml')
-rw-r--r-- | src/tools/qml/qmlobserver/qmlruntime.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/qml/qmlobserver/qmlruntime.cpp b/src/tools/qml/qmlobserver/qmlruntime.cpp index 422b89f531c..1353935f978 100644 --- a/src/tools/qml/qmlobserver/qmlruntime.cpp +++ b/src/tools/qml/qmlobserver/qmlruntime.cpp @@ -659,7 +659,8 @@ QDeclarativeViewer::~QDeclarativeViewer() void QDeclarativeViewer::setDesignModeBehavior(bool value) { - designModeBehaviorAction->setChecked(value); + if (designModeBehaviorAction) + designModeBehaviorAction->setChecked(value); canvas->setDesignModeBehavior(value); } |