TextEditor: Fix crash on F1

Change-Id: I5f834417ff68544189297e30ef4364b14fa5d162
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-07-04 10:15:08 +02:00
parent 7155a10bb7
commit 93251de4b1

View File

@@ -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
// the help id. Otherwise, let the identification process happen.
if (!Utils::ToolTip::isVisible() || !lastHelpItemIdentified().isValid())
process(widget, pos, ReportPriority()); // TODO
process(widget, pos, [](int){});
if (lastHelpItemIdentified().isValid())
return lastHelpItemIdentified().helpId();