Skip to content

Commit

Permalink
fix #19933
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 23, 2019
1 parent a965231 commit 2b21a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/layer_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ def _loadTablePreview(self, table, limit=False):
self.setLayers([vl])
QgsProject.instance().addMapLayers([vl], False)
self.zoomToFullExtent()
self.currentLayerId = vl.id()
else:
self.setLayers([])

self.currentLayerId = vl.id()
self.currentLayerId = None

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

0 comments on commit 2b21a97

Please sign in to comment.