[QGIS Commit] r13057 - trunk/qgis/src/providers/grass
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Mon Mar 15 13:59:54 EDT 2010
Author: rblazek
Date: 2010-03-15 13:59:53 -0400 (Mon, 15 Mar 2010)
New Revision: 13057
Modified:
trunk/qgis/src/providers/grass/qgsgrass.cpp
Log:
set default GRASS_GUI
Modified: trunk/qgis/src/providers/grass/qgsgrass.cpp
===================================================================
--- trunk/qgis/src/providers/grass/qgsgrass.cpp 2010-03-15 17:34:38 UTC (rev 13056)
+++ trunk/qgis/src/providers/grass/qgsgrass.cpp 2010-03-15 17:59:53 UTC (rev 13057)
@@ -519,6 +519,7 @@
QFile in( globalGisrc );
QString line;
+ bool guiSet = false;
char buf[1000];
if ( in.open( QIODevice::ReadOnly ) )
{
@@ -531,6 +532,7 @@
{
continue;
}
+ if ( line.contains( "GRASS_GUI:" ) ) guiSet = true;
stream << line;
}
in.close();
@@ -541,6 +543,9 @@
stream << line;
line = "MAPSET: " + mapset + "\n";
stream << line;
+ if ( !guiSet ) {
+ stream << "GRASS_GUI: wxpython\n";
+ }
out.close();
More information about the QGIS-commit
mailing list