Commit ab881e89 authored by Kai Willadsen's avatar Kai Willadsen

Guard against an unset action group in initial switch

parent d01c2297
......@@ -937,8 +937,10 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
# widget.get_clipboard(
# gtk.gdk.SELECTION_CLIPBOARD).wait_is_text_available()
paste = widget.get_editable()
for action, sens in zip(("Cut", "Copy", "Paste"), (cut, copy, paste)):
self.main_actiongroup.get_action(action).set_sensitive(sens)
if self.main_actiongroup:
for action, sens in zip(
("Cut", "Copy", "Paste"), (cut, copy, paste)):
self.main_actiongroup.get_action(action).set_sensitive(sens)
def get_selected_text(self):
"""Returns selected text of active pane"""
......
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