FileDialog: Add OS X Volume directory fix

This commit is contained in:
Lukas W
2014-08-29 23:03:18 +02:00
parent c002af57ec
commit fad89f68ce

View File

@@ -52,11 +52,13 @@ FileDialog::FileDialog( QWidget *parent, const QString &caption,
urls << QUrl::fromLocalFile( QDesktopServices::storageLocation( QDesktopServices::MusicLocation ) );
urls << QUrl::fromLocalFile( configManager::inst()->workingDir() );
#ifdef LMMS_BUILD_APPLE
QDir volumesDir( QDir("/Volumes") );
if ( volumesDir.exists() )
urls << volumesDir;
#endif
// 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);
}