summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-09-16 22:21:05 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-09-18 23:37:39 +0200
commitfe45f8f090ae64ff5b8bad59ce628662ea60209a (patch)
treee2c736f4a69687ee305c4562ed2592db81e1817f /rbutil/rbutilqt/configure.cpp
parentf3b56eba58780df99a00646aaf9064761cb46635 (diff)
downloadrockbox-fe45f8f090ae64ff5b8bad59ce628662ea60209a.tar.gz
rockbox-fe45f8f090ae64ff5b8bad59ce628662ea60209a.tar.bz2
rockbox-fe45f8f090ae64ff5b8bad59ce628662ea60209a.zip
Show mountpoint on multiple devices found message as well.
Change-Id: I315813646ee3fe3b510510e99e2dbf88c649f4d8
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 7416a55ccb..4bcfc41a8b 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -741,9 +741,14 @@ void Config::autodetect()
msg += tr("Detected devices:");
msg += "<ul>";
for(int i = 0; i < detected.size(); ++i) {
- msg += QString("<li>%1</li>").arg(
+ QString mp = detected.at(i).mountpoint;
+ if(mp.isEmpty()) {
+ mp = tr("(unknown)");
+ }
+ msg += QString("<li>%1 at %2</li>").arg(
SystemInfo::platformValue(detected.at(i).device,
- SystemInfo::CurPlatformName).toString());
+ SystemInfo::CurPlatformName).toString(),
+ QDir::toNativeSeparators(mp));
}
msg += "</ul>";
msg += tr("Note: detecting connected devices might be ambiguous. "