Skip to content

Commit

Permalink
Use Qt file dialog to browse for GISBASE folder because Mac native di…
Browse files Browse the repository at this point in the history
…alog doesn't allow user to browse inside bundles.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7334 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Nov 6, 2007
1 parent 106cdac commit 81c40c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/grass/qgsgrass.cpp
Expand Up @@ -137,8 +137,11 @@ void GRASS_EXPORT QgsGrass::init( void )

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

0 comments on commit 81c40c1

Please sign in to comment.