[meld] filediff: Only emit the close signal if that's what we're actually doing



commit 0f80d6f0c042915a1173580db2131c0473b465f2
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Dec 21 11:59:02 2014 +1000

    filediff: Only emit the close signal if that's what we're actually doing

 meld/filediff.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index e8b33da..3db2e07 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -900,8 +900,8 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
         if response == Gtk.ResponseType.OK:
             for h in self.settings_handlers:
                 meldsettings.disconnect(h)
-        # TODO: Base the return code on something meaningful for VC tools
-        self.emit('close', 0)
+            # TODO: Base the return code on something meaningful for VC tools
+            self.emit('close', 0)
         return response
 
     def on_undo_activate(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]