forked from qt-creator/qt-creator
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:
@@ -214,13 +214,13 @@ int AddKitOperation::execute() const
|
||||
if (map.isEmpty())
|
||||
map = initializeKits();
|
||||
|
||||
map = addKit(map, m_id, m_displayName, m_icon, m_debuggerEngine, m_debugger,
|
||||
m_deviceType.toUtf8(), m_sysRoot, m_tc, m_qt, m_mkspec, m_extra);
|
||||
QVariantMap result = addKit(map, m_id, m_displayName, m_icon, m_debuggerEngine, m_debugger,
|
||||
m_deviceType.toUtf8(), m_sysRoot, m_tc, m_qt, m_mkspec, m_extra);
|
||||
|
||||
if (map.isEmpty())
|
||||
if (map.isEmpty() || map == result)
|
||||
return -2;
|
||||
|
||||
return save(map, QLatin1String("profiles")) ? 0 : -3;
|
||||
return save(result, QLatin1String("profiles")) ? 0 : -3;
|
||||
}
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
Reference in New Issue
Block a user