mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 06:32:34 -05:00
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:
parent
a619d06341
commit
bedfd7c8b5
1 changed files with 7 additions and 3 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue