]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUniv tries to release mouse capture from menu bar instead of menu
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 6 Oct 2001 22:46:06 +0000 (22:46 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 6 Oct 2001 22:46:06 +0000 (22:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/menu.cpp

index 46c328ebcbe305816b0dba22a700496c3d665463..4151a9523661e5aecb6d2dba9a4da71d0d41d63c 100644 (file)
@@ -2292,7 +2292,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
 
 void wxMenuBar::OnDismiss()
 {
 
 void wxMenuBar::OnDismiss()
 {
-    ReleaseMouse();
+    if ( GetCapture() )
+        ReleaseMouse();
 
     if ( m_current != -1 )
     {
 
     if ( m_current != -1 )
     {