1
0
Fork 0
forked from len0rd/rockbox

rbutil: limit the mountpoint selection to /Media on linux and /Volumes on Mac.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14688 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2007-09-14 14:37:43 +00:00
parent d9bf26a127
commit b775101260
3 changed files with 10 additions and 0 deletions

View file

@ -494,6 +494,11 @@ void Config::browseFolder()
#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");
#endif
browser->show();
connect(browser, SIGNAL(itemChanged(QString)), this, SLOT(setMountpoint(QString)));
}