From 5b6396919a6b7b28251e354f12da9d016576e0f6 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Sat, 21 Mar 2009 09:50:08 +0000 Subject: [PATCH] Fixed assertion that could appear under wxGTK if wxComboCtrl drop-down button was clicked too quickly (backported from trunk) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59689 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 64ca4d1173..c9a50ffec0 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -1789,7 +1789,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()