]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed assertion that could appear under wxGTK if wxComboCtrl drop-down button was...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 14 Feb 2009 16:42:40 +0000 (16:42 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 14 Feb 2009 16:42:40 +0000 (16:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/combocmn.cpp

index 50449b2344ca0e4a1d1fe3642ac1e60d99b770f8..03f2819b7bdcb3019cf3034015b2c148fa17fdc4 100644 (file)
@@ -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()