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: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2012-10-02 16:52:30 +02:00
parent 6bf583987a
commit eaaae54e10
2 changed files with 3 additions and 0 deletions

View File

@@ -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)