mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
[dbmanager] skip RuntimeError: fixes #6892
This commit is contained in:
parent
7f8b259209
commit
fc2a4a14fa
@ -74,7 +74,11 @@ class LayerPreview(QgsMapCanvas):
|
||||
def _clear(self):
|
||||
""" remove any layers from preview canvas """
|
||||
if self.item is not None:
|
||||
## skip exception on RuntimeError fixes #6892
|
||||
try:
|
||||
self.disconnect(self.item, SIGNAL('aboutToChange'), self.setDirty)
|
||||
except RuntimeError:
|
||||
pass
|
||||
self.item = None
|
||||
self.dirty = False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user