From c221c1076acf7177b89859d9d2ce9eb6da1d7871 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 24 Jan 2013 16:28:58 +0000 Subject: [PATCH] 6360: Fix to work with new model svn: r21213 --- gramps/plugins/tool/relcalc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/tool/relcalc.py b/gramps/plugins/tool/relcalc.py index f7a899b9e..4fb6b9ac0 100644 --- a/gramps/plugins/tool/relcalc.py +++ b/gramps/plugins/tool/relcalc.py @@ -61,7 +61,7 @@ from gramps.gui.glade import Glade # #------------------------------------------------------------------------- -column_names = BasePersonView.COLUMN_NAMES +column_names = [column[0] for column in BasePersonView.COLUMNS] #------------------------------------------------------------------------- # @@ -166,11 +166,11 @@ class RelCalc(tool.Tool, ManagedWindow): return (_("Relationship Calculator tool"),None) def on_apply_clicked(self, obj): - model, node = self.tree.get_selection().get_selected() - if not node: + model, iter_ = self.tree.get_selection().get_selected() + if not iter_: return - handle = model.get_value(node, PeopleBaseModel.COLUMN_INT_ID) + handle = model.get_handle_from_iter(iter_) other_person = self.db.get_person_from_handle(handle) if other_person is None : self.textbuffer.set_text("")