diff options
Diffstat (limited to 'wrong_layout/plugin.py')
-rw-r--r-- | wrong_layout/plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wrong_layout/plugin.py b/wrong_layout/plugin.py index 5444426..0a30051 100644 --- a/wrong_layout/plugin.py +++ b/wrong_layout/plugin.py @@ -75,7 +75,8 @@ class Base(object): self.chat_control.handlers[self.id_] = self.chat_control.msg_textview def disconnect_from_chat_control(self): - self.chat_control.handlers[self.id_].disconnect(self.id_) + if self.chat_control.msg_textview.handler_is_connected(self.id_): + self.chat_control.msg_textview.disconnect(self.id_) def mykeypress_event(self, widget, event): if event.keyval == gtk.keysyms.r or event.keyval == 1739: |