Fixed assertion that could appear under wxGTK if wxComboCtrl drop-down button was clicked too quickly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-02-14 16:42:40 +00:00
parent 4dd250f787
commit 0689e4c1f0

View File

@@ -1833,7 +1833,10 @@ void wxComboCtrlBase::OnButtonClick()
{ {
// Derived classes can override this method for totally custom // Derived classes can override this method for totally custom
// popup action // popup action
ShowPopup(); if ( !IsPopupWindowState(Visible) )
ShowPopup();
else
HidePopup();
} }
void wxComboCtrlBase::ShowPopup() void wxComboCtrlBase::ShowPopup()