mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[dbmanager] Fixes #13679 - QGIS master crashes when closing DB Manager in preview mode
This commit is contained in:
parent
602437aa06
commit
47013f7bef
@ -54,10 +54,12 @@ class LayerPreview(QgsMapCanvas):
|
||||
def loadPreview(self, item):
|
||||
if item == self.item and not self.dirty:
|
||||
return
|
||||
self._clear()
|
||||
|
||||
if item is None:
|
||||
return
|
||||
|
||||
self._clear()
|
||||
|
||||
if isinstance(item, Table) and item.type in [Table.VectorType, Table.RasterType]:
|
||||
# update the preview, but first let the manager chance to show the canvas
|
||||
runPrev = lambda: self._loadTablePreview(item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user