Merge pull request #1112 from LMMS/stable-1.1-iss1058
FileDialog: Add `/Volume` directory on OS X
This commit is contained in:
@@ -52,6 +52,14 @@ FileDialog::FileDialog( QWidget *parent, const QString &caption,
|
||||
urls << QUrl::fromLocalFile( QDesktopServices::storageLocation( QDesktopServices::MusicLocation ) );
|
||||
urls << QUrl::fromLocalFile( configManager::inst()->workingDir() );
|
||||
|
||||
// Add `/Volumes` directory on OS X systems, this allows the user to browse
|
||||
// external disk drives.
|
||||
#ifdef LMMS_BUILD_APPLE
|
||||
QDir volumesDir( QDir("/Volumes") );
|
||||
if ( volumesDir.exists() )
|
||||
urls << QUrl::fromLocalFile( volumesDir.absolutePath() );
|
||||
#endif
|
||||
|
||||
setSidebarUrls(urls);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user