Skip to content

Commit dc6b7cd

Browse files
author
jef
committed
open grass module tree collapsed (implements #459)
git-svn-id: http://svn.osgeo.org/qgis/trunk@10496 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7a4f73d commit dc6b7cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/grass/qgsgrasstools.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ bool QgsGrassTools::loadConfig( QString filePath )
266266
// Go through the sections and modules and add them to the list view
267267
addModules( 0, modulesElem );
268268

269+
mModulesTree->topLevelItem( 0 )->setExpanded( true );
270+
269271
file.close();
270272
return true;
271273
}
@@ -303,7 +305,7 @@ void QgsGrassTools::addModules( QTreeWidgetItem *parent, QDomElement &element )
303305
QString label = e.attribute( "label" );
304306
QgsDebugMsg( QString( "label = %1" ).arg( label ) );
305307
item->setText( 0, label );
306-
item->setExpanded( true );
308+
item->setExpanded( false );
307309

308310
addModules( item, e );
309311

0 commit comments

Comments
 (0)