mirror of https://github.com/BOINC/boinc.git
Mac: Fix bugs when user chooses Quit from menubar icon menu and then cancels in confirmation dialog.
svn path=/trunk/boinc/; revision=13001
This commit is contained in:
parent
b77756c7c0
commit
dbfb00570e
|
@ -6622,3 +6622,12 @@ Charlie 23 June 2007
|
|||
cs_statefile.C
|
||||
lib/
|
||||
filesys.C
|
||||
|
||||
Charlie 24 June 2007
|
||||
Mac: Fix bugs when user chooses Quit from menubar icon menu and
|
||||
then cancels in confirmation dialog.
|
||||
|
||||
clientgui/
|
||||
BOINCTaskBar.cpp
|
||||
mac/
|
||||
MacSysMenu.cpp
|
||||
|
|
|
@ -277,7 +277,10 @@ void CTaskBarIcon::OnAbout(wxCommandEvent& WXUNUSED(event)) {
|
|||
void CTaskBarIcon::OnExit(wxCommandEvent& event) {
|
||||
wxLogTrace(wxT("Function Start/End"), wxT("CTaskBarIcon::OnExit - Function Begin"));
|
||||
|
||||
if (wxGetApp().ConfirmExit()) {
|
||||
#ifndef __WXMAC__
|
||||
if (wxGetApp().ConfirmExit())
|
||||
#endif
|
||||
{
|
||||
wxCloseEvent eventClose;
|
||||
OnClose(eventClose);
|
||||
if (eventClose.GetSkipped()) event.Skip();
|
||||
|
|
|
@ -314,7 +314,12 @@ pascal OSStatus SysMenuEventHandler( EventHandlerCallRef inHandlerCallRef,
|
|||
commandID = wxID_PREFERENCES;
|
||||
break;
|
||||
case kHICommandQuit:
|
||||
commandID = wxID_EXIT;
|
||||
if (wxGetApp().ConfirmExit()) {
|
||||
commandID = wxID_EXIT;
|
||||
} else {
|
||||
commandID = 0;
|
||||
return noErr;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue