From eca779d6c7d0b6e6836f725159b2269231a6dd4f Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 3 Jan 2016 01:50:30 +0000 Subject: [PATCH] Accounts list now updates when an account is created. --- source/frmMain.cpp | 2 +- source/frmNewAccount.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); } -- 2.39.2