Permalink
Browse files

Prevent exception on close when disconnecting slots

  • Loading branch information...
1 parent e289c2f commit 2692859890bb0a91eb96aac0888186cee9e0201d @timlinux timlinux committed Apr 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 gui/is_dock.py
View
@@ -217,9 +217,12 @@ def disconnectLayerListener(self):
except:
pass
- QtCore.QObject.disconnect(self.iface.mapCanvas(),
+ try:
+ QtCore.QObject.disconnect(self.iface.mapCanvas(),
QtCore.SIGNAL('layersChanged()'),
self.getLayers)
+ except:
+ pass
def validate(self):
"""Helper method to evaluate the current state of the dialog and

0 comments on commit 2692859

Please sign in to comment.