MGR: Fix Mac-only bug since BOINC 7.3.0 which prevented showing exit confirmation dialog when selecting quit from menubar icon menu (task bar menu.) This bug was introduced when task bar icon handling was changed for wxWidgets 3.0.

This commit is contained in:
Charlie Fenton 2015-06-10 00:38:31 -07:00
parent eb088e48d7
commit 7dea1b7b16
1 changed files with 1 additions and 4 deletions

View File

@ -290,10 +290,7 @@ void CTaskBarIcon::OnAbout(wxCommandEvent& WXUNUSED(event)) {
void CTaskBarIcon::OnExit(wxCommandEvent& event) {
wxLogTrace(wxT("Function Start/End"), wxT("CTaskBarIcon::OnExit - Function Begin"));
#ifndef __WXMAC__
if (wxGetApp().ConfirmExit())
#endif
{
if (wxGetApp().ConfirmExit()) {
wxCloseEvent eventClose;
OnClose(eventClose);
if (eventClose.GetSkipped()) event.Skip();