Commit 41e753d9 authored by Kai Willadsen's avatar Kai Willadsen

filediff: Clean up buffer handlers after disconnecting

parent 062c72aa
......@@ -339,9 +339,9 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
for textview in self.textview:
textview.set_sensitive(False)
for buf in self.textbuffer:
assert hasattr(buf,"handlers")
for h in buf.handlers:
buf.disconnect(h)
buf.handlers = []
def _connect_buffer_handlers(self):
for textview in self.textview:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment