mirror of https://github.com/BOINC/boinc.git
Merge pull request #4198 from BOINC/dpa_win_menu
Manager: don't crash when alt-space is pressed
This commit is contained in:
commit
3d1d402938
|
@ -1092,6 +1092,7 @@ void CAdvancedFrame::OnMenuOpening( wxMenuEvent &event) {
|
|||
|
||||
bool isConnected = pDoc->IsConnected();
|
||||
wxMenu* menu = event.GetMenu();
|
||||
if (!menu) return;
|
||||
|
||||
menu->FindItem(ID_SELECTCOMPUTER, &menuFile);
|
||||
menu->FindItem(ID_HELPBOINC, &menuHelp);
|
||||
|
|
|
@ -472,6 +472,7 @@ void CSimpleFrame::OnMenuOpening( wxMenuEvent &event) {
|
|||
|
||||
bool isConnected = pDoc->IsConnected();
|
||||
wxMenu* menu = event.GetMenu();
|
||||
if (!menu) return;
|
||||
|
||||
menu->FindItem(ID_CLOSEWINDOW, &menuFile);
|
||||
menu->FindItem(ID_HELPBOINC, &menuHelp);
|
||||
|
|
Loading…
Reference in New Issue