return the result of ProcessEvent() from ProcessCommand() instead of always returning true unconditionally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -221,8 +221,7 @@ bool wxFrameBase::ProcessCommand(int id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GetEventHandler()->ProcessEvent(commandEvent);
|
return GetEventHandler()->ProcessEvent(commandEvent);
|
||||||
return true;
|
|
||||||
#else // !wxUSE_MENUS
|
#else // !wxUSE_MENUS
|
||||||
return false;
|
return false;
|
||||||
#endif // wxUSE_MENUS/!wxUSE_MENUS
|
#endif // wxUSE_MENUS/!wxUSE_MENUS
|
||||||
|
Reference in New Issue
Block a user