Skip to content

Commit

Permalink
Add /Volumes to browser tree for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Sep 25, 2012
1 parent 7f08c37 commit 4c33582
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/qgsbrowsermodel.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 4c33582

Please sign in to comment.