From 7f33f83780a10b4f4083f5950412f1924f3639a6 Mon Sep 17 00:00:00 2001 From: Stephen Brokenshire Date: Tue, 7 Nov 2017 22:45:20 +0000 Subject: [PATCH] frmMain: Clearup active account, file information and contact lists when reloading preferences --- source/frmMain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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")); -- 2.39.2