X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02cbc27a344365a7824555e2c219fcc399bfc4d5..c0ad3d42d5eb619556a3905df22338360b1f6fcc:/src/univ/menu.cpp?ds=sidebyside diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index 586b829b2d..967fa78da4 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -2295,7 +2295,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar) void wxMenuBar::OnDismiss() { - ReleaseMouse(); + if ( GetCapture() ) + GetCapture()->ReleaseMouse(); if ( m_current != -1 ) {