mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-01 00:05:25 -04:00
Add /Volumes to browser tree for Mac
This commit is contained in:
parent
7f08c3724d
commit
4c335826b7
@ -66,6 +66,13 @@ void QgsBrowserModel::addRootItems()
|
||||
mRootItems << item;
|
||||
}
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
QString path = QString( "/Volumes" );
|
||||
QgsDirectoryItem *vols = new QgsDirectoryItem( NULL, path, path );
|
||||
connectItem( vols );
|
||||
mRootItems << vols;
|
||||
#endif
|
||||
|
||||
// Add non file top level items
|
||||
QStringList providersList = QgsProviderRegistry::instance()->providerList();
|
||||
providersList.sort();
|
||||
|
Loading…
x
Reference in New Issue
Block a user