mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
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:
parent
1ac0bf8ba1
commit
0880ab8d94
@ -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" ) ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user