From: Jaakko Salli Date: Sat, 14 Feb 2009 16:42:40 +0000 (+0000) Subject: Fixed assertion that could appear under wxGTK if wxComboCtrl drop-down button was... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0689e4c1f049490597051f9df385e34ddc3d6db6 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 --- diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index 50449b2344..03f2819b7b 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -1833,7 +1833,10 @@ void wxComboCtrlBase::OnButtonClick() { // Derived classes can override this method for totally custom // popup action - ShowPopup(); + if ( !IsPopupWindowState(Visible) ) + ShowPopup(); + else + HidePopup(); } void wxComboCtrlBase::ShowPopup()