set GRASS_HTML_BROWSER to qgis.g.browser on win

git-svn-id: http://svn.osgeo.org/qgis/trunk@13002 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rblazek 2010-03-05 11:02:18 +00:00
parent 1ac0bf8ba1
commit 0880ab8d94

View File

@ -140,6 +140,7 @@ void QgsGrassTools::runModule( QString name )
if ( name == "shell" ) if ( name == "shell" )
{ {
#ifdef WIN32 #ifdef WIN32
QgsGrass::putEnv ( "GRASS_HTML_BROWSER", QgsApplication::pkgDataPath() + "/grass/bin/qgis.g.browser" );
if ( !QProcess::startDetached( getenv( "COMSPEC" ) ) ) if ( !QProcess::startDetached( getenv( "COMSPEC" ) ) )
{ {
QMessageBox::warning( 0, "Warning", tr( "Cannot start command shell (%1)" ).arg( getenv( "COMSPEC" ) ) ); QMessageBox::warning( 0, "Warning", tr( "Cannot start command shell (%1)" ).arg( getenv( "COMSPEC" ) ) );