Fix MRU menus (#48)
Broken in 9bbfdddde0
. I don't understand
why the author made such a change, so I left their solution with #ifdef
guard.
This commit is contained in:
parent
a32bf7acdc
commit
a4bde47c5c
1 changed files with 6 additions and 1 deletions
|
@ -529,8 +529,13 @@ namespace menu {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef __WXMAC__
|
||||
menu->Bind(wxEVT_MENU_OPEN, &CommandManager::OnMenuOpen, &menu->cm);
|
||||
menu->Bind(wxEVT_MENU, &CommandManager::OnMenuClick, &menu->cm);
|
||||
#else
|
||||
window->Bind(wxEVT_MENU_OPEN, &CommandManager::OnMenuOpen, &menu->cm);
|
||||
window->Bind(wxEVT_MENU, &CommandManager::OnMenuClick, &menu->cm);
|
||||
#endif
|
||||
|
||||
#ifdef __WXMAC__
|
||||
bind_events(menu.get());
|
||||
|
|
Loading…
Reference in a new issue