X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02cbc27a344365a7824555e2c219fcc399bfc4d5..00c813596e3eefdd028365acf9542355937e5531:/src/univ/menu.cpp 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 ) {