From ee17ea12d8a4dc9987364867637025e59a93d087 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 5 Nov 2009 09:20:29 -0800 Subject: [PATCH] views.main: Show 'Exit Diff Mode' when using Diff->Expression We weren't showing the 'Exit Diff Mode' button when going into the 'Diff->Expression' mode. Closes #31 Signed-off-by: David Aguilar --- cola/views/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cola/views/main.py b/cola/views/main.py index 0cdf705d..456fda14 100644 --- a/cola/views/main.py +++ b/cola/views/main.py @@ -211,7 +211,9 @@ class MainView(MainWindow): def _mode_changed(self, mode): """React to mode changes; hide/show the "Exit Diff Mode" button.""" - if mode in (self.model.mode_review, self.model.mode_diff): + if mode in (self.model.mode_review, + self.model.mode_diff, + self.model.mode_diff_expr): self.alt_button.setMinimumHeight(40) self.alt_button.show() else: -- 2.11.4.GIT