Skip to content
Permalink
Browse files
open grass module tree collapsed (implements #459)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10496 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 7, 2009
1 parent 8f13d95 commit 1310229cabd6d05b3a29b1c9408c73e2e4fe6388
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/plugins/grass/qgsgrasstools.cpp
@@ -266,6 +266,8 @@ bool QgsGrassTools::loadConfig( QString filePath )
// Go through the sections and modules and add them to the list view
addModules( 0, modulesElem );

mModulesTree->topLevelItem( 0 )->setExpanded( true );

file.close();
return true;
}
@@ -303,7 +305,7 @@ void QgsGrassTools::addModules( QTreeWidgetItem *parent, QDomElement &element )
QString label = e.attribute( "label" );
QgsDebugMsg( QString( "label = %1" ).arg( label ) );
item->setText( 0, label );
item->setExpanded( true );
item->setExpanded( false );

addModules( item, e );

0 comments on commit 1310229

Please sign in to comment.