Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 d100628
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/plugins/db_manager/layer_preview.py
Expand Up @@ -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

Expand Down

0 comments on commit d100628

Please sign in to comment.