mirror of https://github.com/BOINC/boinc.git
MGR: Re-enable cancel confirmation dialog in the wizard.
This commit is contained in:
parent
df8063fe6b
commit
3bceafe8af
|
@ -625,12 +625,13 @@ wxWizardPageEx* CWizardAttach::_PushPageTransition( wxWizardPageEx* pCurrentPage
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#if 0
|
||||
void CWizardAttach::_ProcessCancelEvent( wxWizardExEvent& event ) {
|
||||
|
||||
bool bCancelWithoutNextPage = false;
|
||||
wxWizardPageEx* page = GetCurrentPage();
|
||||
|
||||
m_bCancelInProgress = true;
|
||||
|
||||
int iRetVal = wxGetApp().SafeMessageBox(
|
||||
_("Do you really want to cancel?"),
|
||||
_("Question"),
|
||||
|
@ -676,9 +677,11 @@ void CWizardAttach::_ProcessCancelEvent( wxWizardExEvent& event ) {
|
|||
}
|
||||
if (wxYES != iRetVal) {
|
||||
event.Veto();
|
||||
m_bCancelInProgress = false;
|
||||
} else {
|
||||
m_bCancelInProgress = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* wxEVT_WIZARD_FINISHED event handler for ID_ATTACHPROJECTWIZARD
|
||||
|
|
|
@ -245,7 +245,7 @@ public:
|
|||
wxWizardPageEx* _PushPageTransition( wxWizardPageEx* pCurrentPage, unsigned long ulPageID );
|
||||
|
||||
/// Cancel Event Infrastructure
|
||||
// void _ProcessCancelEvent( wxWizardExEvent& event );
|
||||
void _ProcessCancelEvent( wxWizardExEvent& event );
|
||||
|
||||
/// Finish Button Environment
|
||||
bool GetAccountCreatedSuccessfully() const { return account_created_successfully ; }
|
||||
|
|
Loading…
Reference in New Issue