- display better values if no user configuration is found

- make it possible to cancel device selection
- accept new device path also if it's not selected from the browser and ignore it if it's not a path.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14162 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2007-08-03 16:55:27 +00:00
parent a31b410868
commit 7aceb93589
3 changed files with 18 additions and 13 deletions

View file

@ -207,6 +207,8 @@ void RbUtilQt::updateDevice()
QString brand = devices->value("brand").toString();
QString name = devices->value("name").toString();
devices->endGroup();
if(name.isEmpty()) name = "<none>";
if(mountpoint.isEmpty()) mountpoint = "<invalid>";
ui.labelDevice->setText(tr("<b>%1 %2</b> at <b>%3</b>")
.arg(brand, name, mountpoint));
}