We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents f8ac3a4 + fc2a4a1 commit d100628Copy full SHA for d100628
python/plugins/db_manager/layer_preview.py
@@ -74,7 +74,11 @@ def setDirty(self, val=True):
74
def _clear(self):
75
""" remove any layers from preview canvas """
76
if self.item is not None:
77
- self.disconnect(self.item, SIGNAL('aboutToChange'), self.setDirty)
+ ## skip exception on RuntimeError fixes #6892
78
+ try:
79
+ self.disconnect(self.item, SIGNAL('aboutToChange'), self.setDirty)
80
+ except RuntimeError:
81
+ pass
82
self.item = None
83
self.dirty = False
84
0 commit comments