summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-15 21:55:34 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-15 21:55:34 +0100
commitdec5421ca2cb5ac9e77ce96507d0285a6b0fcfee (patch)
treed8a93441f1ed6f4c21f5e483fa42d5fe7f97b1eb /rbutil/rbutilqt/rbutilqt.cpp
parentaf766ae10eb10685bfd81124738b167294b7a8f2 (diff)
downloadrockbox-dec5421ca2cb5ac9e77ce96507d0285a6b0fcfee.tar.gz
rockbox-dec5421ca2cb5ac9e77ce96507d0285a6b0fcfee.tar.bz2
rockbox-dec5421ca2cb5ac9e77ce96507d0285a6b0fcfee.zip
rbutil: Rework server info data handling.
Return status as int, not as string, and provide a separate function for converting to string. This allows to filter based on the actual status, not a (localized) status string, which is more robust. Fix a regression that made players with missing status value show up as retired. Change-Id: I15f83ae0df484199b1b3b5b95069db8b4d425987
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index ae28ee4e70..0fb2ba562e 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -408,7 +408,7 @@ void RbUtilQt::updateDevice()
QString brand = SystemInfo::platformValue(SystemInfo::Brand).toString();
QString name
= QString("%1 (%2)").arg(SystemInfo::platformValue(SystemInfo::Name).toString(),
- ServerInfo::platformValue(ServerInfo::CurStatus).toString());
+ ServerInfo::statusToString(ServerInfo::platformValue(ServerInfo::CurStatus).toInt()));
ui.labelDevice->setText(QString("<b>%1 %2</b>").arg(brand, name));
QString mountpoint = RbSettings::value(RbSettings::Mountpoint).toString();