Skip to content

Commit efb6e3a

Browse files
author
jef
committed
merge r10496 and r10497 to 1.0
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10499 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 39d262b commit efb6e3a

2 files changed

Lines changed: 8 additions & 25 deletions

File tree

‎src/plugins/grass/config/default.qgc‎

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,14 @@
6868
</section>
6969
</section>
7070

71-
<section label=" ">
72-
</section>
73-
7471
<section label="Config">
7572
<section label="Region">
7673
<section label="Region settings">
7774
<grass name="g.region.save"/>
7875
<grass name="g.region.zoom"/>
7976
<grass name="g.region.multiple.raster"/>
80-
<grass name="g.region.multiple.vector"/> </section>
77+
<grass name="g.region.multiple.vector"/>
78+
</section>
8179
<section label="Projection management">
8280
<section label="Print projection information of the current location"> <grass name="g.proj.print"/>
8381
</section>
@@ -98,9 +96,6 @@
9896
</section>
9997
</section>
10098

101-
<section label=" ">
102-
</section>
103-
10499
<section label="Raster">
105100
<section label="Develop map">
106101
<section label="Compress raster">
@@ -241,9 +236,6 @@
241236
</section>
242237
</section>
243238

244-
<section label=" ">
245-
</section>
246-
247239
<section label="Vector">
248240
<section label="Develop map">
249241
<section label="Topology management">
@@ -370,9 +362,6 @@
370362
</section>
371363
</section>
372364

373-
<section label=" ">
374-
</section>
375-
376365
<section label="Imagery">
377366
<section label="Develop images and group">
378367
<grass name="i.image.mosaic"/>
@@ -404,9 +393,6 @@
404393
</section>
405394
</section>
406395

407-
<section label=" ">
408-
</section>
409-
410396
<section label="Database">
411397
<section label="Database management">
412398
<grass name="db.connect"/>
@@ -438,16 +424,10 @@
438424
</section>
439425
</section>
440426

441-
<section label=" ">
442-
</section>
443-
444427
<section label="3d Visualization">
445428
<grass name="nviz"/>
446429
</section>
447430

448-
<section label=" ">
449-
</section>
450-
451431
<section label="Help">
452432
<grass name="g.manual"/>
453433
</section>

‎src/plugins/grass/qgsgrasstools.cpp‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ void QgsGrassTools::runModule( QString name )
171171
#endif
172172

173173
#ifdef WIN32
174-
if( !QProcess::startDetached( getenv("COMSPEC") ) ) {
175-
QMessageBox::warning( 0, "Warning", tr("Cannot start command shell (%1)").arg( getenv("COMSPEC") ) );
174+
if ( !QProcess::startDetached( getenv( "COMSPEC" ) ) )
175+
{
176+
QMessageBox::warning( 0, "Warning", tr( "Cannot start command shell (%1)" ).arg( getenv( "COMSPEC" ) ) );
176177
}
177178
return;
178179
#else
@@ -266,6 +267,8 @@ bool QgsGrassTools::loadConfig( QString filePath )
266267
// Go through the sections and modules and add them to the list view
267268
addModules( 0, modulesElem );
268269

270+
mModules->topLevelItem( 0 )->setExpanded( true );
271+
269272
file.close();
270273
return true;
271274
}
@@ -303,7 +306,7 @@ void QgsGrassTools::addModules( QTreeWidgetItem *parent, QDomElement &element )
303306
QString label = e.attribute( "label" );
304307
QgsDebugMsg( QString( "label = %1" ).arg( label ) );
305308
item->setText( 0, label );
306-
item->setExpanded( true );
309+
item->setExpanded( false );
307310

308311
addModules( item, e );
309312

0 commit comments

Comments
 (0)