Skip to content

Commit

Permalink
Remove workaround for layergroup bug #6938, now fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Oct 21, 2014
1 parent 37f1a16 commit 93864ce
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 93864ce

Please sign in to comment.