[meld/meld-3-18] filediff: Don't reset saving state from while-closing saves (#264)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/meld-3-18] filediff: Don't reset saving state from while-closing saves (#264)
- Date: Sat, 19 Jan 2019 21:15:35 +0000 (UTC)
commit 833475d287c8656a36bae79b00723e8502ac102b
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jan 20 07:13:12 2019 +1000
filediff: Don't reset saving state from while-closing saves (#264)
See c645afe63a651066cf47888551f2c6cf01879e44 for an explanation.
meld/filediff.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index d6ef1ade..86ac1341 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1522,9 +1522,9 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
if pane == 1 and self.num_panes == 3:
self.meta['middle_saved'] = True
- if (self.state == melddoc.STATE_CLOSING and
- not any(b.get_modified() for b in self.textbuffer)):
- self.on_delete_event()
+ if self.state == melddoc.STATE_CLOSING:
+ if not any(b.get_modified() for b in self.textbuffer):
+ self.on_delete_event()
else:
self.state = melddoc.STATE_NORMAL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]