Skip to content

Commit

Permalink
open grass module tree collapsed (implements #459)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10496 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 7, 2009
1 parent 7a4f73d commit dc6b7cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/grass/qgsgrasstools.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit dc6b7cd

Please sign in to comment.