From: Steve Brokenshire Date: Sun, 3 Jan 2016 01:50:30 +0000 (+0000) Subject: Accounts list now updates when an account is created. X-Git-Tag: release-0.09~98 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=eca779d6c7d0b6e6836f725159b2269231a6dd4f Accounts list now updates when an account is created. --- diff --git a/source/frmMain.cpp b/source/frmMain.cpp index 150e7f9..f7026d8 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -488,7 +488,7 @@ void frmMain::OpenNewABDialog( wxCommandEvent& event) frameNewAccount->ShowModal(); delete frameNewAccount; frameNewAccount = NULL; - + if (ReloadAccounts == TRUE){ // Reload the accounts as a change has been made within diff --git a/source/frmNewAccount.cpp b/source/frmNewAccount.cpp index e320223..211fb89 100644 --- a/source/frmNewAccount.cpp +++ b/source/frmNewAccount.cpp @@ -450,7 +450,7 @@ void frmNewAccount::ProcessNext( wxCommandEvent& event ) delete cfgfile; cfgfile = NULL; - ReloadAccountConfig = TRUE; + *ReloadAccountConfig = TRUE; #else @@ -536,7 +536,7 @@ void frmNewAccount::ProcessNext( wxCommandEvent& event ) delete cfgfile; cfgfile = NULL; - ReloadAccountConfig = TRUE; + *ReloadAccountConfig = TRUE; #endif @@ -573,7 +573,7 @@ void frmNewAccount::WriteAccountDetails(wxFileConfig *cfgfilein, wxString Accoun void frmNewAccount::CloseWindow( wxCommandEvent& event ) { - ReloadAccountConfig = FALSE; + *ReloadAccountConfig = FALSE; this->Close(); }