forked from qt-creator/qt-creator
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:
@@ -221,6 +221,7 @@ void KitManager::restoreKits()
|
|||||||
|
|
||||||
KitManager::~KitManager()
|
KitManager::~KitManager()
|
||||||
{
|
{
|
||||||
|
saveKits(); // Make sure we save the current state on exit!
|
||||||
// Clean out kit information to avoid calling them during deregistration:
|
// Clean out kit information to avoid calling them during deregistration:
|
||||||
delete d;
|
delete d;
|
||||||
m_instance = 0;
|
m_instance = 0;
|
||||||
|
|||||||
@@ -203,6 +203,8 @@ void ToolChainManager::restoreToolChains()
|
|||||||
|
|
||||||
ToolChainManager::~ToolChainManager()
|
ToolChainManager::~ToolChainManager()
|
||||||
{
|
{
|
||||||
|
saveToolChains(); // Make sure to save tool chains when closing
|
||||||
|
|
||||||
// Deregister tool chains
|
// Deregister tool chains
|
||||||
QList<ToolChain *> copy = d->toolChains();
|
QList<ToolChain *> copy = d->toolChains();
|
||||||
foreach (ToolChain *tc, copy)
|
foreach (ToolChain *tc, copy)
|
||||||
|
|||||||
Reference in New Issue
Block a user