-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TopoViewer: all layers are added as visible while code asks them NOT to be #19669
Comments
Author Name: Sandro Santilli (@strk) Link to more code: https://github.com/qgis/QGIS/blob/final-2_4_0/python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/__init__.py#L104-L118 It looks like 2.4 was also affected :(
|
Author Name: Sandro Santilli (@strk) 2.2.0 was fine |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: gillian milani (gillian milani) The moveLayer(layer, group) make your layer visible. |
Author Name: Sandro Santilli (@strk) Thank you Gillian, the change fixes the problem. But as of version 2.2 the behaviour was different. |
Author Name: Sandro Santilli (@strk) Fixed in changeset "1ff2ad3cc3fa4bdca691f83497f96e83a6cc898b".
|
Author Name: Salvatore Larosa (@slarosa) I would reopen this issue as the @moveLayer@ should not make the layer visible if it was not. here my proposal patch: #1629 I also think you can drop all the stuff like "should not be needed: #16051" from topoviewer plugin :) Thoughts? |
Author Name: Sandro Santilli (@strk) Agreed, reopened.
|
Author Name: Martin Dobias (@wonder-sk) Fixed in changeset "3546b325a5c335ac960494259bb006514111c08d".
|
Author Name: Sandro Santilli (@strk) Thanks, Martin. Could you also look at #16051 since you're at it ? Would be nice to drop other hacks from the plugin, like |
Author Name: Martin Dobias (@wonder-sk) I think #16051 should not be an issue since 2.4 because the logic for visibility has been rewritten. Would you mind to check if your code works without that workaround in 2.4 / master - and eventually close that ticket? |
Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 11382
Affected QGIS version: 2.4.0
Redmine category:db_manager
Assignee: Martin Dobias
I guess something changed in the TOC api as the TopoViewer plugin of the DBManager now adds all layers as visible even if it makes its best to request then NOT to be.
Code snippet:
The text was updated successfully, but these errors were encountered: