summaryrefslogtreecommitdiff
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
parenta619d06341041886ae3c269aa3723fc88699bdf4 (diff)
downloadrockbox-bedfd7c8b5059495e6c27fd8cca862b9a63f8ca1.tar.gz
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
-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()
492#elif defined(Q_OS_WIN32) 492#elif defined(Q_OS_WIN32)
493 browser->setFilter(QDir::Drives); 493 browser->setFilter(QDir::Drives);
494#endif 494#endif
495 QDir d(ui.mountPoint->text());
496 browser->setDir(d);
497#if defined(Q_OS_MACX) 495#if defined(Q_OS_MACX)
498 browser->setRoot("/Volumes"); 496 browser->setRoot("/Volumes");
499#elif defined(Q_OS_LINUX) 497#elif defined(Q_OS_LINUX)
500 browser->setRoot("/media"); 498 QDir a("/media");
499 browser->setDir(a);
501#endif 500#endif
501 if( ui.mountPoint->text() != "" )
502 {
503 QDir d(ui.mountPoint->text());
504 browser->setDir(d);
505 }
502 browser->show(); 506 browser->show();
503 connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString))); 507 connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString)));
504} 508}