summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-15 20:03:05 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-15 20:03:05 +0000
commitc9f70fe3043fa7b850af524f23700e66eb4e6fd1 (patch)
treefefb328a4af8bc61af1cd5826a8108ad5a475ec3 /rbutil/rbutilqt/configure.cpp
parent241f28eefce35e1cf9087ab06f1ee474017f6be8 (diff)
downloadrockbox-c9f70fe3043fa7b850af524f23700e66eb4e6fd1.tar.gz
rockbox-c9f70fe3043fa7b850af524f23700e66eb4e6fd1.tar.bz2
rockbox-c9f70fe3043fa7b850af524f23700e66eb4e6fd1.zip
Show volume labels on Windows.
In mountpoint selection and system info dialog show the volume name to make it easier to identify a specific device. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30141 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index e48a89f302..eeac492dff 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -586,10 +586,11 @@ void Config::refreshMountpoint()
// later (to include volume label or similar)
// Skip unwritable mountpoints, they are not useable for us.
if(QFileInfo(mps.at(i)).isWritable()) {
- QString title = QString("%1 (%2 GiB of %3 GiB free)")
+ QString title = QString("%1 %4 (%2 GiB of %3 GiB free)")
.arg(QDir::toNativeSeparators(mps.at(i)))
.arg((double)Utils::filesystemFree(mps.at(i))/(1<<30), 0, 'f', 2)
- .arg((double)Utils::filesystemTotal(mps.at(i))/(1<<30), 0, 'f', 2);
+ .arg((double)Utils::filesystemTotal(mps.at(i))/(1<<30), 0, 'f', 2)
+ .arg(Utils::filesystemName(mps.at(i)));
ui.mountPoint->addItem(title, mps.at(i));
}
}