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
This commit is contained in:
Antoine Cellerier 2007-09-14 19:27:35 +00:00
parent a619d06341
commit bedfd7c8b5

View file

@ -492,13 +492,17 @@ void Config::browseFolder()
#elif defined(Q_OS_WIN32) #elif defined(Q_OS_WIN32)
browser->setFilter(QDir::Drives); browser->setFilter(QDir::Drives);
#endif #endif
QDir d(ui.mountPoint->text());
browser->setDir(d);
#if defined(Q_OS_MACX) #if defined(Q_OS_MACX)
browser->setRoot("/Volumes"); browser->setRoot("/Volumes");
#elif defined(Q_OS_LINUX) #elif defined(Q_OS_LINUX)
browser->setRoot("/media"); QDir a("/media");
browser->setDir(a);
#endif #endif
if( ui.mountPoint->text() != "" )
{
QDir d(ui.mountPoint->text());
browser->setDir(d);
}
browser->show(); browser->show();
connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString))); connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString)));
} }