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:
parent
d9bf26a127
commit
b775101260
3 changed files with 10 additions and 0 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue