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

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