From 4c335826b75fc4dd8c4c8bd64d69ea77c0ac19e1 Mon Sep 17 00:00:00 2001 From: Larry Shaffer Date: Mon, 24 Sep 2012 15:00:52 -0600 Subject: [PATCH] Add /Volumes to browser tree for Mac --- src/core/qgsbrowsermodel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/qgsbrowsermodel.cpp b/src/core/qgsbrowsermodel.cpp index ecaf17292bc..2841772b84c 100644 --- a/src/core/qgsbrowsermodel.cpp +++ b/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();