forked from qt-creator/qt-creator
TextEditor: Fix crash on F1
Change-Id: I5f834417ff68544189297e30ef4364b14fa5d162 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -84,7 +84,7 @@ QString BaseHoverHandler::contextHelpId(TextEditorWidget *widget, int pos)
|
|||||||
// If the tooltip is visible and there is a help match, this match is used to update
|
// If the tooltip is visible and there is a help match, this match is used to update
|
||||||
// the help id. Otherwise, let the identification process happen.
|
// the help id. Otherwise, let the identification process happen.
|
||||||
if (!Utils::ToolTip::isVisible() || !lastHelpItemIdentified().isValid())
|
if (!Utils::ToolTip::isVisible() || !lastHelpItemIdentified().isValid())
|
||||||
process(widget, pos, ReportPriority()); // TODO
|
process(widget, pos, [](int){});
|
||||||
|
|
||||||
if (lastHelpItemIdentified().isValid())
|
if (lastHelpItemIdentified().isValid())
|
||||||
return lastHelpItemIdentified().helpId();
|
return lastHelpItemIdentified().helpId();
|
||||||
|
Reference in New Issue
Block a user