summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/utils.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-11-01 20:46:46 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-11-01 20:46:46 +0000
commit8f827f10e26bc815b8609d85d17db1c5dc940969 (patch)
tree3cbfc43b70a6140ca8053f2f642175acc8e6a655 /rbutil/rbutilqt/base/utils.cpp
parent080820b36e45cbaf95f228a6936ef8dee9e4945d (diff)
downloadrockbox-8f827f10e26bc815b8609d85d17db1c5dc940969.tar.gz
rockbox-8f827f10e26bc815b8609d85d17db1c5dc940969.tar.bz2
rockbox-8f827f10e26bc815b8609d85d17db1c5dc940969.zip
Show user friendly name on target mismatch.
Instead of showing the target name as stored in rockbox-info.txt retrieve the full descriptive name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30886 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/utils.cpp')
-rw-r--r--rbutil/rbutilqt/base/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp
index 27e31d65e8..f91f3c25c2 100644
--- a/rbutil/rbutilqt/base/utils.cpp
+++ b/rbutil/rbutilqt/base/utils.cpp
@@ -315,10 +315,10 @@ QString Utils::checkEnvironment(bool permission)
if(!installed.isEmpty() && installed !=
SystemInfo::value(SystemInfo::CurConfigureModel).toString())
{
- text += tr("<li>Target mismatch detected.\n"
- "Installed target: %1, selected target: %2.</li>")
- .arg(installed, SystemInfo::value(SystemInfo::CurPlatformName).toString());
- // FIXME: replace installed by human-friendly name
+ text += tr("<li>Target mismatch detected.<br/>"
+ "Installed target: %1<br/>Selected target: %2.</li>")
+ .arg(SystemInfo::platformValue(installed, SystemInfo::CurPlatformName).toString(),
+ SystemInfo::value(SystemInfo::CurPlatformName).toString());
}
if(!text.isEmpty())