projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c38af
)
fixing the routing of UpdateUI to the window by just passing NULL as source
author
Stefan Csomor
<csomor@advancedconcepts.ch>
Mon, 30 Jan 2012 16:05:03 +0000
(16:05 +0000)
committer
Stefan Csomor
<csomor@advancedconcepts.ch>
Mon, 30 Jan 2012 16:05:03 +0000
(16:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70479
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/menucmn.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/menucmn.cpp
b/src/common/menucmn.cpp
index 9f7d8128c5df28a21b51be8e008059ed7d69e8f8..a39ab6852eb592f5f4ec241410c9355375880358 100644
(file)
--- a/
src/common/menucmn.cpp
+++ b/
src/common/menucmn.cpp
@@
-1038,18
+1038,13
@@
wxString wxMenuBarBase::GetHelpString(int itemid) const
void wxMenuBarBase::UpdateMenus()
{
- wxEvtHandler* source;
wxMenu* menu;
int nCount = GetMenuCount();
for (int n = 0; n < nCount; n++)
{
menu = GetMenu( n );
if (menu != NULL)
- {
- source = menu->GetEventHandler();
- if (source != NULL)
- menu->UpdateUI( source );
- }
+ menu->UpdateUI( NULL );
}
}