Updater: Ensure folders are not removed #3747

This commit is contained in:
Christian Kamm 2015-09-18 11:58:10 +02:00
parent 9cfa63eed8
commit 4144d4672f

View file

@ -186,6 +186,10 @@ Application::Application(int &argc, char **argv) :
Application::~Application()
{
// Make sure all folders are gone, otherwise removing the
// accounts will remove the associated folders from the settings.
FolderMan::instance()->unloadAndDeleteAllFolders();
// Remove the account from the account manager so it can be deleted.
AccountManager::instance()->shutdown();
}