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:
Vadim Zeitlin
2008-01-30 21:31:03 +00:00
parent 349556aba5
commit 2902ec6116

View File

@@ -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