Skip to content
Permalink
Browse files

Use Qt file dialog to browse for GISBASE folder because Mac native di…

…alog doesn't allow user to browse inside bundles.

git-svn-id: http://svn.osgeo.org/qgis/trunk@7334 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski
telwertowski committed Nov 6, 2007
1 parent 958553a commit 02a10f3cc18b6a12e1bca2bc64fec42a327c5b1a
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/providers/grass/qgsgrass.cpp
@@ -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!

0 comments on commit 02a10f3

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