Commit 041c27cb authored by dt's avatar dt
Browse files

Cloned Toolchains are "equal" so they aren't added

Reviewed-By: hunger
parent 5d0c1a41
...@@ -307,6 +307,12 @@ void ToolChainModel::apply() ...@@ -307,6 +307,12 @@ void ToolChainModel::apply()
foreach (ToolChainNode *n, nodes) { foreach (ToolChainNode *n, nodes) {
ToolChainManager::instance()->registerToolChain(n->toolChain); ToolChainManager::instance()->registerToolChain(n->toolChain);
} }
//
foreach (ToolChainNode *n, m_toAddList) {
delete n->toolChain;
n->toolChain = 0;
}
qDeleteAll(m_toAddList);
} }
void ToolChainModel::discard() void ToolChainModel::discard()
......
Markdown is supported
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