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

@@ -81,12 +81,12 @@ int AddKeysOperation::execute() const
QVariantMap map = load(m_file);
map = addKeys(map, m_data);
if (map.isEmpty())
QVariantMap result = addKeys(map, m_data);
if (map.isEmpty() || map == result)
return -4;
// Write data again:
return save(map, m_file) ? 0 : -5;
return save(result, m_file) ? 0 : -5;
}
#ifdef WITH_TESTS