mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-29 00:03:59 -04:00
Remove workaround for layergroup bug #6938, now fixed
This commit is contained in:
parent
37f1a16ce9
commit
93864ce55c
@ -96,16 +96,11 @@ def run(item, action, mainwindow):
|
|||||||
iface.mapCanvas().setRenderFlag( False )
|
iface.mapCanvas().setRenderFlag( False )
|
||||||
try:
|
try:
|
||||||
supergroup = legend.addGroup(u'Topology "%s"' % toponame, False)
|
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()
|
provider = db.dbplugin().providerName()
|
||||||
uri = db.uri();
|
uri = db.uri();
|
||||||
|
|
||||||
# FACES
|
# FACES
|
||||||
group = legend.addGroup(u'Faces', False, supergroup)
|
group = legend.addGroup(u'Faces', False, supergroup)
|
||||||
# should not be needed: http://hub.qgis.org/issues/6938
|
|
||||||
legend.setGroupVisible(group, False)
|
|
||||||
|
|
||||||
# face mbr
|
# face mbr
|
||||||
uri.setDataSource(toponame, 'face', 'mbr', '', 'face_id')
|
uri.setDataSource(toponame, 'face', 'mbr', '', 'face_id')
|
||||||
@ -152,8 +147,6 @@ def run(item, action, mainwindow):
|
|||||||
|
|
||||||
# NODES
|
# NODES
|
||||||
group = legend.addGroup(u'Nodes', False, supergroup)
|
group = legend.addGroup(u'Nodes', False, supergroup)
|
||||||
# should not be needed: http://hub.qgis.org/issues/6938
|
|
||||||
legend.setGroupVisible(group, False)
|
|
||||||
|
|
||||||
# node
|
# node
|
||||||
uri.setDataSource(toponame, 'node', 'geom', '', 'node_id')
|
uri.setDataSource(toponame, 'node', 'geom', '', 'node_id')
|
||||||
@ -181,8 +174,6 @@ def run(item, action, mainwindow):
|
|||||||
|
|
||||||
# EDGES
|
# EDGES
|
||||||
group = legend.addGroup(u'Edges', False, supergroup)
|
group = legend.addGroup(u'Edges', False, supergroup)
|
||||||
# should not be needed: http://hub.qgis.org/issues/6938
|
|
||||||
legend.setGroupVisible(group, False)
|
|
||||||
|
|
||||||
# edge
|
# edge
|
||||||
uri.setDataSource(toponame, 'edge_data', 'geom', '', 'edge_id')
|
uri.setDataSource(toponame, 'edge_data', 'geom', '', 'edge_id')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user