Commit 9ec2714a authored by Kai Willadsen's avatar Kai Willadsen

Fix popup return and remove now-unused _get_selected_paths()

parent be078d24
......@@ -416,8 +416,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
def on_button_press_event(self, text, event):
if event.button == 3:
self.popup_menu.popup(None, None, None, event.button, event.time)
return len(self._get_selected_paths()) != 1
return 0
return True
return False
def on_button_flatten_toggled(self, button):
self.treeview_column_location.set_visible(self.actiongroup.get_action("VcFlatten").get_active())
......@@ -425,9 +425,6 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
def on_button_filter_toggled(self, button):
self.refresh()
def _get_selected_paths(self):
return self.treeview.get_selection().get_selected_rows()[1]
def _get_selected_files(self):
sel = []
def gather(model, path, it):
......
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