Commit 1ddd9fbc authored by Kai Willadsen's avatar Kai Willadsen

filediff: Fix overly eager tab close handling for cancelled closes

parent 443514b5
......@@ -851,14 +851,14 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
return response
def on_delete_event(self):
# TODO: This should not be necessary; remove if and when we
# figure out what's keeping MeldDocs alive for too long.
del self._cached_match
self.state = melddoc.STATE_CLOSING
response = self.check_save_modified()
if response == Gtk.ResponseType.OK:
for h in self.settings_handlers:
meldsettings.disconnect(h)
# TODO: This should not be necessary; remove if and when we
# figure out what's keeping MeldDocs alive for too long.
del self._cached_match
# TODO: Base the return code on something meaningful for VC tools
self.emit('close', 0)
return response
......
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