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:
@@ -152,12 +152,12 @@ int AddQtOperation::execute() const
|
||||
if (map.isEmpty())
|
||||
map = initializeQtVersions();
|
||||
|
||||
map = addQt(map, m_id, m_displayName, m_type, m_qmake, m_extra);
|
||||
QVariantMap result = addQt(map, m_id, m_displayName, m_type, m_qmake, m_extra);
|
||||
|
||||
if (map.isEmpty())
|
||||
if (map.isEmpty() || result == map)
|
||||
return -2;
|
||||
|
||||
return save(map, QLatin1String("qtversions")) ? 0 : -3;
|
||||
return save(result, QLatin1String("qtversions")) ? 0 : -3;
|
||||
}
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
Reference in New Issue
Block a user