1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2011-11-01 20:46:46 +00:00
parent 080820b36e
commit 8f827f10e2

View file

@ -315,10 +315,10 @@ QString Utils::checkEnvironment(bool permission)
if(!installed.isEmpty() && installed != if(!installed.isEmpty() && installed !=
SystemInfo::value(SystemInfo::CurConfigureModel).toString()) SystemInfo::value(SystemInfo::CurConfigureModel).toString())
{ {
text += tr("<li>Target mismatch detected.\n" text += tr("<li>Target mismatch detected.<br/>"
"Installed target: %1, selected target: %2.</li>") "Installed target: %1<br/>Selected target: %2.</li>")
.arg(installed, SystemInfo::value(SystemInfo::CurPlatformName).toString()); .arg(SystemInfo::platformValue(installed, SystemInfo::CurPlatformName).toString(),
// FIXME: replace installed by human-friendly name SystemInfo::value(SystemInfo::CurPlatformName).toString());
} }
if(!text.isEmpty()) if(!text.isEmpty())