summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-09-14 19:27:35 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-09-14 19:27:35 +0000
commitbedfd7c8b5059495e6c27fd8cca862b9a63f8ca1 (patch)
tree5f6eb0bd344c08442d8292d7902e3792216d5716 /rbutil
parenta619d06341041886ae3c269aa3723fc88699bdf4 (diff)
downloadrockbox-bedfd7c8b5059495e6c27fd8cca862b9a63f8ca1.tar.gz
rockbox-bedfd7c8b5059495e6c27fd8cca862b9a63f8ca1.tar.bz2
rockbox-bedfd7c8b5059495e6c27fd8cca862b9a63f8ca1.zip
On linux, default to /media for the mountpoint selection but make it possible to chose other directories too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14693 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/configure.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 98617f659e..4001bc6347 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -492,13 +492,17 @@ void Config::browseFolder()
#elif defined(Q_OS_WIN32)
browser->setFilter(QDir::Drives);
#endif
- QDir d(ui.mountPoint->text());
- browser->setDir(d);
#if defined(Q_OS_MACX)
browser->setRoot("/Volumes");
#elif defined(Q_OS_LINUX)
- browser->setRoot("/media");
+ QDir a("/media");
+ browser->setDir(a);
#endif
+ if( ui.mountPoint->text() != "" )
+ {
+ QDir d(ui.mountPoint->text());
+ browser->setDir(d);
+ }
browser->show();
connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString)));
}