mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
fix #19933
This commit is contained in:
parent
a9652316af
commit
2b21a97994
@ -126,10 +126,10 @@ class LayerPreview(QgsMapCanvas):
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user