Fix crash on text hint being triggered after disabling code browser plugin

Authored by kossebau on Aug 30 2019, 7:50 PM.

Description

Fix crash on text hint being triggered after disabling code browser plugin

From KTextEditor::TextHintInterface::registerTextHintProvider() docs:
"When the provider is about to be destroyed, make sure to call
unregisterTextHintProvider() to avoid a dangling pointer."
(new requirement with KF5)

The old code never unregistered in case the ContextBrowserPlugin was
deleted (like it happens when disabling the plugin in the settings in
a running KDevelop instance).

CCBUG: 411371

Details

Committed
kossebauSep 1 2019, 2:05 PM
Parents
R32:c7254e73e661: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown