Skip to content
Permalink
Browse files

Merge pull request #827 from slarosa/fix_6892

[dbmanager] skip RuntimeError: fixes #6892
  • Loading branch information
brushtyler committed Aug 23, 2013
2 parents f8ac3a4 + fc2a4a1 commit d100628da299ded9edcba4dcd52051deef8fcbcb
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 d100628

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