]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/menu.cpp
no, wxComboBox is really NOT a low-level class (neither is wxChoice, for that matter...
[wxWidgets.git] / src / univ / menu.cpp
index 46c328ebcbe305816b0dba22a700496c3d665463..4151a9523661e5aecb6d2dba9a4da71d0d41d63c 100644 (file)
@@ -2292,7 +2292,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
 
 void wxMenuBar::OnDismiss()
 {
-    ReleaseMouse();
+    if ( GetCapture() )
+        ReleaseMouse();
 
     if ( m_current != -1 )
     {