-
-
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
DB Manager: previewing layers in Virtual layers section remove them from the Layers panel #24385
Comments
Author Name: Harrissou Santanna (@DelazJ)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
Happens also in master Happens also in master
|
Author Name: Luigi Pirelli (@luipir) the problem is a logic problem... the db_manager base class layer_preview remove from registry any previously added layer (currentLayer) with it's id, with assumption that it's id is a temporary layer because has been added for the preview. virtual layer qgis layer is populated of all registry layers => also that are in the layer list, when you click on that it become current layer => it is removed when switching to another layer in db_manager looking for a simple solution for that |
Author Name: Luigi Pirelli (@luipir) fixed for 2.18 #4534 waiting for review and merge, expecially review by Hugo Mercier.
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Harrissou Santanna (@DelazJ) Looks like the fix for QGIS 3 never landed
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 16476
Affected QGIS version: master
Redmine category:db_manager
Open a project
Launch DB Manager, expand the Virtual layers section, then QGIs layers and select a layer
Click the Preview tab
Select another layer
The layer you selected first has been removed from the Layers panel, hence from the project (GUI, at least)
Happens also in master
Set the report as high because this can easily corrupt the project if you don't notice the removal (and anyway, if you notice it, you'll need to close and not save the project to avoid it being corrupted)
Related issue(s): #24440 (duplicates)
Redmine related issue(s): 16534
The text was updated successfully, but these errors were encountered: