From 392f86786d09a6320ac7d9905f201fd297914449 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 16 Aug 2010 19:03:54 +0200 Subject: [PATCH] qmlobserver: fix crash in -frameless --- src/tools/qml/qmlobserver/qmlruntime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }