forked from qt-creator/qt-creator
TextEditor: always return a valid assist interface
It is required for updating currently visible proposals. Also guard
against potential null assist interfaces.
Amends 0bd6d7a69f
Fixes: QTCREATORBUG-29096
Change-Id: Ic34d70561b471e7e529f2fb7c239b49712aca502
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1042,7 +1042,7 @@ std::unique_ptr<AssistInterface> QmlJSEditorWidget::createAssistInterface(
|
||||
return std::make_unique<Internal::QmlJSQuickFixAssistInterface>(
|
||||
const_cast<QmlJSEditorWidget *>(this), reason);
|
||||
}
|
||||
return nullptr;
|
||||
return TextEditorWidget::createAssistInterface(assistKind, reason);
|
||||
}
|
||||
|
||||
QString QmlJSEditorWidget::foldReplacementText(const QTextBlock &block) const
|
||||
|
||||
Reference in New Issue
Block a user