From 0689e4c1f049490597051f9df385e34ddc3d6db6 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Sat, 14 Feb 2009 16:42:40 +0000 Subject: [PATCH] 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 --- src/common/combocmn.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.50.0