[meld] gutterrendererchunk: Fix accidental replace action for a no-action chunk



commit e6912cab3c8107145ab087ed0795ca89ee4250bf
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon Oct 3 07:09:22 2016 +1000

    gutterrendererchunk: Fix accidental replace action for a no-action chunk

 meld/gutterrendererchunk.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/gutterrendererchunk.py b/meld/gutterrendererchunk.py
index 91f6dba..4970265 100644
--- a/meld/gutterrendererchunk.py
+++ b/meld/gutterrendererchunk.py
@@ -180,7 +180,7 @@ class GutterRendererChunkAction(
             # TODO: Need a custom GtkMenuPositionFunc to position this next to
             # the clicked gutter, not where the cursor is
             copy_menu.popup(None, None, None, None, 0, event.time)
-        else:
+        elif action == MODE_REPLACE:
             self.filediff.replace_chunk(self.from_pane, self.to_pane, chunk)
 
     def _make_copy_menu(self, chunk):


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