Commit d9a76822 authored by Kai Willadsen's avatar Kai Willadsen

Prevent identical files notification from flashing on reload

parent 79e14fce
......@@ -651,6 +651,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
"""Set num panes to len(files) and load each file given.
If an element is None, the text of a pane is left as is.
"""
self._disconnect_buffer_handlers()
for i,f in enumerate(files):
if f:
self.textbuffer[i].delete(*self.textbuffer[i].get_bounds())
......@@ -664,6 +665,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.msgarea_mgr[i].clear()
self.recompute_label()
self.textview[len(files) >= 2].grab_focus()
self._connect_buffer_handlers()
self.scheduler.add_task( self._set_files_internal(files).next )
def _load_files(self, files, textbuffers, panetext):
......
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