Commit 062c72aa authored by Kai Willadsen's avatar Kai Willadsen

filediff: Handle buffer handler reconnection for blank file cases

Normally, the file-loaded callbacks will take care of signal connection
and sensitivity setting, but in the case where we're creating a blank
comparison (or any other cases where we're not actually loading files)
the file load code that triggers the comparison never gets hit.
parent dec395e7
......@@ -1054,6 +1054,9 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
files = [(pane, Gio.File.new_for_path(filename))
for pane, filename in enumerate(files) if filename]
if not files:
self.scheduler.add_task(self._compare_files_internal())
for pane, gfile in files:
self.fileentry[pane].set_file(gfile)
self.msgarea_mgr[pane].clear()
......
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