Skip to content

Commit 2b21a97

Browse files
committedFeb 23, 2019
fix #19933
1 parent a965231 commit 2b21a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/db_manager/layer_preview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ def _loadTablePreview(self, table, limit=False):
126126
self.setLayers([vl])
127127
QgsProject.instance().addMapLayers([vl], False)
128128
self.zoomToFullExtent()
129+
self.currentLayerId = vl.id()
129130
else:
130131
self.setLayers([])
131-
132-
self.currentLayerId = vl.id()
132+
self.currentLayerId = None
133133

134134
self.freeze(False)
135135
super().refresh()

0 commit comments

Comments
 (0)
Please sign in to comment.