rbutil: Use a non-zero default value for status.
When resolving the status values downloaded from the server use a negative value as default. Since 0 is the default in QSettings but now considered as "retired" a missing status value would make that target appear as retired instead of unknown status. Change-Id: I23567413c5c3d5828fca7f9c5a29e2037e8614cf
This commit is contained in:
parent
f850bbbbc4
commit
2aecb3b9ea
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ void ServerInfo::readBuildInfo(QString file)
|
|||
|
||||
info.beginGroup("status");
|
||||
QString status = tr("Unknown");
|
||||
switch(info.value(platforms.at(i)).toInt())
|
||||
switch(info.value(platforms.at(i), -1).toInt())
|
||||
{
|
||||
case 0:
|
||||
status = tr("Stable (Retired)");
|
||||
|
|
Loading…
Reference in a new issue