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
@@ -90,9 +90,9 @@ int RmQtOperation::execute() const
|
||||
|
||||
QVariantMap result = rmQt(map, m_id);
|
||||
if (result == map)
|
||||
return -2;
|
||||
return 2;
|
||||
|
||||
return save(result, QLatin1String("qtversion")) ? 0 : -3;
|
||||
return save(result, QLatin1String("qtversion")) ? 0 : 3;
|
||||
}
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
Reference in New Issue
Block a user