QmlDesigner: Fix crash

isBlocked seems to be called in rare cases if the model is null.

Change-Id: Ie8fa6007a0891f4204c35600084025ca52f079e9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2022-08-23 17:27:30 +02:00
committed by Tim Jenssen
parent 8310a2f0a9
commit daabcbbf73

View File

@@ -28,12 +28,14 @@
#include <model.h>
#include <modelnode.h>
#include <QObject>
#include <QUrl>
#include <QQmlPropertyMap>
#include <QQmlComponent>
#include <QColor>
#include <QObject>
#include <QPoint>
#include <QPointer>
#include <QQmlComponent>
#include <QQmlPropertyMap>
#include <QUrl>
#include <QMouseEvent>
namespace QmlDesigner {
@@ -183,7 +185,7 @@ private:
QPoint m_lastPos;
Model *m_model = nullptr;
QPointer<Model> m_model;
bool m_aliasExport = false;