forked from qt-creator/qt-creator
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:
committed by
Tim Jenssen
parent
8310a2f0a9
commit
daabcbbf73
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user