[QGIS Commit] r10496 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Apr 7 08:39:07 EDT 2009


Author: jef
Date: 2009-04-07 08:39:07 -0400 (Tue, 07 Apr 2009)
New Revision: 10496

Modified:
   trunk/qgis/src/plugins/grass/qgsgrasstools.cpp
Log:
open grass module tree collapsed (implements #459)

Modified: trunk/qgis/src/plugins/grass/qgsgrasstools.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrasstools.cpp	2009-04-07 12:00:39 UTC (rev 10495)
+++ trunk/qgis/src/plugins/grass/qgsgrasstools.cpp	2009-04-07 12:39:07 UTC (rev 10496)
@@ -266,6 +266,8 @@
   // 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 @@
         QString label = e.attribute( "label" );
         QgsDebugMsg( QString( "label = %1" ).arg( label ) );
         item->setText( 0, label );
-        item->setExpanded( true );
+        item->setExpanded( false );
 
         addModules( item, e );
 



More information about the QGIS-commit mailing list