Skip to content

Commit 4c33582

Browse files
committedSep 25, 2012
Add /Volumes to browser tree for Mac
1 parent 7f08c37 commit 4c33582

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/core/qgsbrowsermodel.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ void QgsBrowserModel::addRootItems()
6666
mRootItems << item;
6767
}
6868

69+
#ifdef Q_WS_MAC
70+
QString path = QString( "/Volumes" );
71+
QgsDirectoryItem *vols = new QgsDirectoryItem( NULL, path, path );
72+
connectItem( vols );
73+
mRootItems << vols;
74+
#endif
75+
6976
// Add non file top level items
7077
QStringList providersList = QgsProviderRegistry::instance()->providerList();
7178
providersList.sort();

0 commit comments

Comments
 (0)
Please sign in to comment.