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:
parent
40a6d74aaf
commit
7dea9423c5
1 changed files with 1 additions and 1 deletions
|
|
@ -431,8 +431,8 @@ bool wxPopupTransientWindow::Show( bool show )
|
|||
|
||||
void wxPopupTransientWindow::Dismiss()
|
||||
{
|
||||
Hide();
|
||||
PopHandlers();
|
||||
Hide();
|
||||
}
|
||||
|
||||
#if defined(__WXMAC__) && wxOSX_USE_COCOA_OR_CARBON
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue