forked from qt-creator/qt-creator
ToolChainManager: Do not unregister toolchains on destruction
Change-Id: I9aaa292d4c1b6e7bbccce5ffe4ae780621074c98 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -95,7 +95,11 @@ ToolChainManagerPrivate::ToolChainManagerPrivate(ToolChainManager *parent)
|
||||
{ }
|
||||
|
||||
ToolChainManagerPrivate::~ToolChainManagerPrivate()
|
||||
{ delete m_writer; }
|
||||
{
|
||||
qDeleteAll(m_toolChains);
|
||||
m_toolChains.clear();
|
||||
delete m_writer;
|
||||
}
|
||||
|
||||
QList<ToolChain *> &ToolChainManagerPrivate::toolChains()
|
||||
{
|
||||
@@ -210,12 +214,6 @@ 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)
|
||||
deregisterToolChain(tc);
|
||||
|
||||
delete d;
|
||||
m_instance = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user