Commit eaaae54e authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make sure to save settings when closing managers



This is needed to catch any updates that were triggered during tear
down of the UI (which happens after the saveSettings signal was emitted).

Change-Id: I9f14e8807070f3192551a3653bad31072db539f5
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 6bf58398
......@@ -221,6 +221,7 @@ void KitManager::restoreKits()
KitManager::~KitManager()
{
saveKits(); // Make sure we save the current state on exit!
// Clean out kit information to avoid calling them during deregistration:
delete d;
m_instance = 0;
......
......@@ -203,6 +203,8 @@ void ToolChainManager::restoreToolChains()
ToolChainManager::~ToolChainManager()
{
saveToolChains(); // Make sure to save tool chains when closing
// Deregister tool chains
QList<ToolChain *> copy = d->toolChains();
foreach (ToolChain *tc, copy)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment