Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dbmanager] skip RuntimeError: fixes #6892
  • Loading branch information
slarosa committed Aug 22, 2013
1 parent 7f8b259 commit fc2a4a1
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 fc2a4a1

Please sign in to comment.