SDKtool: Fix removal of toolchains

Change-Id: If66745582adcae1dbdb101cecc426280c1be182f
Reviewed-by: Rainer Keller <rainer.keller@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Tobias Hunger
2013-02-22 13:57:00 +01:00
parent 88fe1ce5b7
commit fcb1693e83
7 changed files with 18 additions and 18 deletions

View File

@@ -149,11 +149,11 @@ int AddToolChainOperation::execute() const
if (map.isEmpty())
map = initializeToolChains();
map = addToolChain(map, m_id, m_displayName, m_path, m_targetAbi, m_supportedAbis, m_extra);
if (map.isEmpty())
QVariantMap result = addToolChain(map, m_id, m_displayName, m_path, m_targetAbi, m_supportedAbis, m_extra);
if (map.isEmpty() || map == result)
return -2;
return save(map, QLatin1String("toolchains")) ? 0 : -3;
return save(result, QLatin1String("toolchains")) ? 0 : -3;
}
#ifdef WITH_TESTS