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
@@ -83,10 +83,10 @@ int AddKeysOperation::execute() const
|
||||
|
||||
QVariantMap result = addKeys(map, m_data);
|
||||
if (result.isEmpty() || map == result)
|
||||
return -4;
|
||||
return 4;
|
||||
|
||||
// Write data again:
|
||||
return save(result, m_file) ? 0 : -5;
|
||||
return save(result, m_file) ? 0 : 5;
|
||||
}
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
Reference in New Issue
Block a user