forked from qt-creator/qt-creator
Don't return negative numbers in sdktool
Negative return values are interpreted as 'process crashed' on Windows: QTBUG-28735 . This in turn means the installer framework always shows an error dialog. By using positive numbers even for error conditions the installer can decide to ignore certain errors instead. Change-Id: Ib5cdd461372ac13fe417feb6ff43a7424c159f68 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
486b5c4739
commit
108899ef8f
@@ -219,9 +219,9 @@ int AddKitOperation::execute() const
|
||||
m_deviceType.toUtf8(), m_sysRoot, m_tc, m_qt, m_mkspec, m_extra);
|
||||
|
||||
if (result.isEmpty() || map == result)
|
||||
return -2;
|
||||
return 2;
|
||||
|
||||
return save(result, QLatin1String("profiles")) ? 0 : -3;
|
||||
return save(result, QLatin1String("profiles")) ? 0 : 3;
|
||||
}
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
Reference in New Issue
Block a user