Fix crash on calltip click on macOS

Commit b0d0494f fixed it for autocomplete popup, but a similar issue is
still present for calltips. This commit fixes it.

Closes https://github.com/wxWidgets/wxWidgets/pull/595
This commit is contained in:
Paul Kulchenko 2017-11-09 16:25:17 -08:00 committed by Vadim Zeitlin
parent d3f20c3837
commit c677e4e652

View File

@ -490,9 +490,10 @@ void ScintillaWX::NotifyParent(SCNotification scn) {
// a side effect that the AutoComp will also not be destroyed when switching
// to another window, but I think that is okay.
void ScintillaWX::CancelModes() {
if (! focusEvent)
if (! focusEvent) {
AutoCompleteCancel();
ct.CallTipCancel();
ct.CallTipCancel();
}
Editor::CancelModes();
}