Skip to content
Permalink
Browse files

Add /Volumes to browser tree for Mac

  • Loading branch information
dakcarto committed Sep 25, 2012
1 parent 7f08c37 commit 4c335826b75fc4dd8c4c8bd64d69ea77c0ac19e1
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/qgsbrowsermodel.cpp
@@ -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();

0 comments on commit 4c33582

Please sign in to comment.
You can’t perform that action at this time.