[accerciser] Fix following relations
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser] Fix following relations
- Date: Fri, 17 May 2019 13:19:44 +0000 (UTC)
commit d82ee833e075955295797b6ef5030bf1f795ae2b
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Fri May 17 15:19:34 2019 +0200
Fix following relations
plugins/interface_view.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index 3971be1..1dc95bd 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -322,8 +322,6 @@ class _SectionAccessible(_InterfaceSection):
self.relation_bg = style.get_background_color(gtk.StateFlags.NORMAL).to_string()
selection = self.relations_view.get_selection()
- selection.set_select_function(self._relationSelectFunc, None)
-
show_button = ui_xml.get_object('button_relation_show')
show_button.set_sensitive(self._isSelectedInView(selection))
selection.connect('changed', self._onViewSelectionChanged, show_button)
@@ -411,7 +409,7 @@ class _SectionAccessible(_InterfaceSection):
'''
selection = relations_view.get_selection()
model, iter = selection.get_selected()
- if iter:
+ if iter and model[iter][2] >= 0:
path = model.get_path(iter)
relations = self.node.acc.getRelationSet()
acc = relations[path[0]].getTarget(model[iter][2])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]