X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02cbc27a344365a7824555e2c219fcc399bfc4d5..9298c435cf9b3f5112de555c46c52c51f1d284bb:/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 ) {