Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmMain: Clearup active account, file information and contact lists when reloading...
authorStephen Brokenshire <stephen.brokenshire@bluefruit.co.uk>
Tue, 7 Nov 2017 22:45:20 +0000 (22:45 +0000)
committerStephen Brokenshire <stephen.brokenshire@bluefruit.co.uk>
Tue, 7 Nov 2017 22:45:20 +0000 (22:45 +0000)
source/frmMain.cpp

index f21a0be..c32e61d 100644 (file)
@@ -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"));
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy