Merge pull request #4198 from BOINC/dpa_win_menu

Manager: don't crash when alt-space is pressed
This commit is contained in:
RichardHaselgrove 2021-02-17 12:03:08 +00:00 committed by GitHub
commit 3d1d402938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

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

View File

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