Skip to content
Permalink
Browse files

[dbmanager] skip RuntimeError: fixes #6892

  • Loading branch information
slarosa committed Aug 22, 2013
1 parent 7f8b259 commit fc2a4a14faf4db93cc8bccdf2e37953d995e8715
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/db_manager/layer_preview.py
@@ -74,7 +74,11 @@ def setDirty(self, val=True):
def _clear(self):
""" remove any layers from preview canvas """
if self.item is not None:
self.disconnect(self.item, SIGNAL('aboutToChange'), self.setDirty)
## skip exception on RuntimeError fixes #6892
try:
self.disconnect(self.item, SIGNAL('aboutToChange'), self.setDirty)
except RuntimeError:
pass
self.item = None
self.dirty = False

0 comments on commit fc2a4a1

Please sign in to comment.
You can’t perform that action at this time.