Commit ddeea1e0 authored by Kai Willadsen's avatar Kai Willadsen

meldwindow: Fix sensitivity setting for go-to-line action

parent af949ee8
......@@ -323,14 +323,14 @@ class MeldWindow(gnomeglade.Component):
if not isinstance(page, melddoc.MeldDoc):
for action in ("PrevChange", "NextChange", "Cut", "Copy", "Paste",
"Find", "FindNext", "FindPrevious", "Replace",
"Refresh"):
"Refresh", "GoToLine"):
self.actiongroup.get_action(action).set_sensitive(False)
else:
for action in ("Find", "Refresh"):
self.actiongroup.get_action(action).set_sensitive(True)
is_filediff = isinstance(page, filediff.FileDiff)
for action in ("Cut", "Copy", "Paste", "FindNext", "FindPrevious",
"Replace"):
"Replace", "GoToLine"):
self.actiongroup.get_action(action).set_sensitive(is_filediff)
def handle_current_doc_switch(self, page):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment