fix enable state of menus when the mouse is grabbed by a different window
svn: r6105
This commit is contained in:
parent
047346c1c8
commit
88475bd517
|
@ -758,9 +758,11 @@ void wxMenuBar::Install(wxWindow *for_frame)
|
||||||
if (!v) {
|
if (!v) {
|
||||||
::DisableMenuItem(mh, 0);
|
::DisableMenuItem(mh, 0);
|
||||||
} else {
|
} else {
|
||||||
if (menu_bar_frame)
|
if (menu_bar_frame) {
|
||||||
v = menu_bar_frame->CanAcceptEvent();
|
/* Don't use CanAcceptEvent(), because that depends on
|
||||||
else
|
mouse capture, which is too transient for updating menus. */
|
||||||
|
v = menu_bar_frame->IsEnable();
|
||||||
|
} else
|
||||||
v = 1;
|
v = 1;
|
||||||
if (!v) {
|
if (!v) {
|
||||||
::DisableMenuItem(mh, 0);
|
::DisableMenuItem(mh, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user