Skip to content

Commit

Permalink
views.main: Show 'Exit Diff Mode' when using Diff->Expression
Browse files Browse the repository at this point in the history
We weren't showing the 'Exit Diff Mode' button when going into
the 'Diff->Expression' mode.

Closes #31

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Nov 6, 2009
1 parent 22355e5 commit ee17ea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cola/views/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def _update_view(self):

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:
Expand Down

0 comments on commit ee17ea1

Please sign in to comment.