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:
parent
080820b36e
commit
8f827f10e2
1 changed files with 4 additions and 4 deletions
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue