Skip to content
Permalink
Browse files

Remove workaround for layergroup bug #6938, now fixed

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Oct 21, 2014
1 parent 37f1a16 commit 93864ce55c9e4ec1a3441f32f73c3166b83ea36c
Showing with 0 additions and 9 deletions.
  1. +0 −9 python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/__init__.py
@@ -96,16 +96,11 @@ def run(item, action, mainwindow):
iface.mapCanvas().setRenderFlag( False )
try:
supergroup = legend.addGroup(u'Topology "%s"' % toponame, False)
# should not be needed: http://hub.qgis.org/issues/6938
legend.setGroupVisible(supergroup, False)

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

# FACES
group = legend.addGroup(u'Faces', False, supergroup)
# should not be needed: http://hub.qgis.org/issues/6938
legend.setGroupVisible(group, False)

# face mbr
uri.setDataSource(toponame, 'face', 'mbr', '', 'face_id')
@@ -152,8 +147,6 @@ def run(item, action, mainwindow):

# NODES
group = legend.addGroup(u'Nodes', False, supergroup)
# should not be needed: http://hub.qgis.org/issues/6938
legend.setGroupVisible(group, False)

# node
uri.setDataSource(toponame, 'node', 'geom', '', 'node_id')
@@ -181,8 +174,6 @@ def run(item, action, mainwindow):

# EDGES
group = legend.addGroup(u'Edges', False, supergroup)
# should not be needed: http://hub.qgis.org/issues/6938
legend.setGroupVisible(group, False)

# edge
uri.setDataSource(toponame, 'edge_data', 'geom', '', 'edge_id')

0 comments on commit 93864ce

Please sign in to comment.
You can’t perform that action at this time.