Skip to content

Commit 051fe31

Browse files
author
Sandro Santilli
committedDec 14, 2012
TopoViewer: make topology group start as collapsed
1 parent bd00b0f commit 051fe31

File tree

1 file changed

+3
-1
lines changed
  • python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview

1 file changed

+3
-1
lines changed
 

‎python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def run(item, action, mainwindow):
9292
prevRenderFlagState = iface.mapCanvas().renderFlag()
9393
iface.mapCanvas().setRenderFlag( False )
9494
try:
95-
group = legend.addGroup(u'%s topology' % toponame)
95+
# NOTE: -1 parent is an attempt to always add to the root, but
96+
# it is currently broken: http://hub.qgis.org/issues/6879
97+
group = legend.addGroup(u'%s topology' % toponame, False, -1)
9698

9799
provider = db.dbplugin().providerName()
98100
uri = db.uri();

0 commit comments

Comments
 (0)
Please sign in to comment.