forked from qt-creator/qt-creator
QmlDesigner: Fix crash at shutdown
It is specifically PureActionInterface pointer that is getting deleted,
and it is subclassed, so its destructor needs to virtual for delete to
work properly.
Fixes: QDS-9221
Change-Id: Iba3b9d944de521d7e115b0d85f5a0f107b703fc1
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
(cherry picked from commit 9d0099245a
)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
b9e4e3cb4d
commit
48863dc367
@@ -14,6 +14,7 @@ class QMLDESIGNERCOMPONENTS_EXPORT PureActionInterface
|
||||
{
|
||||
public:
|
||||
explicit PureActionInterface(QAction *action);
|
||||
virtual ~PureActionInterface() = default;
|
||||
virtual void setSelectionContext(const SelectionContext &selectionContext) = 0;
|
||||
QAction *action();
|
||||
|
||||
|
Reference in New Issue
Block a user