forked from qt-creator/qt-creator
QML: Fix crash when opening context menu
The AssistInterface changed to unique_ptr, but the internals of how the
QmlJSEditor looked for quick fixes still wrapped it into a
QSharedPointer, which then deleted the assist interface in addition to
the unique_ptr.
Amends 0e4b0a26d3
Fixes: QTCREATORBUG-28742
Change-Id: If685dbb2c49b09d529d0dcb3677dc90b03a039f0
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
committed by
David Schulz
parent
8512aba9eb
commit
541aafecbb
@@ -8,8 +8,8 @@
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
QMLJSEDITOR_EXPORT void matchComponentFromObjectDefQuickFix
|
||||
(const QmlJSQuickFixInterface &interface, QuickFixOperations &result);
|
||||
QMLJSEDITOR_EXPORT void matchComponentFromObjectDefQuickFix(
|
||||
const Internal::QmlJSQuickFixAssistInterface *interface, QuickFixOperations &result);
|
||||
|
||||
QMLJSEDITOR_EXPORT void performComponentFromObjectDef
|
||||
(const QString &fileName, QmlJS::AST::UiObjectDefinition *objDef);
|
||||
|
||||
Reference in New Issue
Block a user