diff --git a/include/wx/combo.h b/include/wx/combo.h index 9e26ddd318..2ba9780a2d 100644 --- a/include/wx/combo.h +++ b/include/wx/combo.h @@ -455,7 +455,7 @@ public: enum { Hidden = 0, - //Closing = 1, + Closing = 1, Animating = 2, Visible = 3 }; diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index b1e0645abd..faa28ab75a 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -2571,8 +2571,9 @@ void wxComboCtrlBase::OnPopupDismiss(bool generateEvent) void wxComboCtrlBase::HidePopup(bool generateEvent) { // Should be able to call this without popup interface - if ( IsPopupWindowState(Hidden) ) + if ( IsPopupWindowState(Hidden) || IsPopupWindowState(Closing) ) return; + m_popupWinState = Closing; // To prevent from reentering // transfer value and show it in textctrl, if any if ( !IsPopupWindowState(Animating) )