6360: Fix to work with new model
svn: r21212
This commit is contained in:
parent
33fa3c2fea
commit
5557ae2643
@ -62,7 +62,7 @@ from gramps.gui.glade import Glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
column_names = BasePersonView.COLUMN_NAMES
|
column_names = [column[0] for column in BasePersonView.COLUMNS]
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -167,11 +167,11 @@ class RelCalc(tool.Tool, ManagedWindow):
|
|||||||
return (_("Relationship Calculator tool"),None)
|
return (_("Relationship Calculator tool"),None)
|
||||||
|
|
||||||
def on_apply_clicked(self, obj):
|
def on_apply_clicked(self, obj):
|
||||||
model, node = self.tree.get_selection().get_selected()
|
model, iter_ = self.tree.get_selection().get_selected()
|
||||||
if not node:
|
if not iter_:
|
||||||
return
|
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)
|
other_person = self.db.get_person_from_handle(handle)
|
||||||
if other_person is None :
|
if other_person is None :
|
||||||
self.textbuffer.set_text("")
|
self.textbuffer.set_text("")
|
||||||
|
Loading…
Reference in New Issue
Block a user