Fix wxPopupTransientWindow::Dismiss() implementation

Remove installed event handlers before trying to hide the popup,
as this could result in Destroy() being called twice under wxQt.
This happens to wxRichToolTip for example. i.e. Destroy() is called
once from wxPopupFocusHandler::OnKillFocus() after the call to Hide()
then, from wxRichToolTipPopup::OnTimer().
This commit is contained in:
ali kettab 2023-12-27 19:48:25 +01:00
parent 40a6d74aaf
commit 7dea9423c5

View file

@ -431,8 +431,8 @@ bool wxPopupTransientWindow::Show( bool show )
void wxPopupTransientWindow::Dismiss()
{
Hide();
PopHandlers();
Hide();
}
#if defined(__WXMAC__) && wxOSX_USE_COCOA_OR_CARBON