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:
Kai Koehne
2013-07-08 08:35:18 +02:00
committed by Tobias Hunger
parent 486b5c4739
commit 108899ef8f
9 changed files with 19 additions and 19 deletions

View File

@@ -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