Skip to content

Commit 02a10f3

Browse files
author
telwertowski
committedNov 6, 2007
Use Qt file dialog to browse for GISBASE folder because Mac native dialog doesn't allow user to browse inside bundles.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7334 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 958553a commit 02a10f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/providers/grass/qgsgrass.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ void GRASS_EXPORT QgsGrass::init( void )
137137

138138
// XXX Need to subclass this and add explantory message above to left side
139139
userGisbase = true;
140+
// For Mac, GISBASE folder may be inside GRASS bundle. Use Qt file dialog
141+
// since Mac native dialog doesn't allow user to browse inside bundles.
140142
gisBase = QFileDialog::getExistingDirectory(
141-
0, QObject::tr("Choose GRASS installation path (GISBASE)"), gisBase);
143+
0, QObject::tr("Choose GRASS installation path (GISBASE)"), gisBase,
144+
QFileDialog::DontUseNativeDialog);
142145
if (gisBase == QString::null)
143146
{
144147
// User pressed cancel. No GRASS for you!

0 commit comments

Comments
 (0)
Please sign in to comment.