From: Stephen Brokenshire Date: Tue, 7 Nov 2017 22:45:20 +0000 (+0000) Subject: frmMain: Clearup active account, file information and contact lists when reloading... X-Git-Tag: release-0.21~2 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=7f33f83780a10b4f4083f5950412f1924f3639a6 frmMain: Clearup active account, file information and contact lists when reloading preferences --- diff --git a/source/frmMain.cpp b/source/frmMain.cpp index f21a0be..c32e61d 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -1438,6 +1438,13 @@ void frmMain::LoadPreferences(bool skipWindowSizeReload){ XABPreferences preferences(preffilename); + // Clear the active account/filename information and account list. + + ActiveAccount = ""; + ActiveAccountType = ""; + ActiveFilename = ""; + lstContacts->DeleteAllItems(); + // Setup the main window position (if needed). bool SaveWindowPos = preferences.GetBoolData(wxT("SaveWindowPosition"));