* src/FamilyView.py: Call marriage editor with callback to update
the family view * src/Marriage.py: Call the family view callback after saving to update the display with changed marriage information svn: r1667
This commit is contained in:
parent
ec43f755f9
commit
0d591399ff
@ -171,7 +171,8 @@ class FamilyView:
|
||||
try:
|
||||
if self.selected_spouse:
|
||||
Marriage.Marriage(self.family,self.parent.db,
|
||||
self.parent.new_after_edit)
|
||||
self.parent.new_after_edit,
|
||||
self.load_family)
|
||||
else:
|
||||
AddSpouse.AddSpouse(self.parent.db,self.person,
|
||||
self.load_family,
|
||||
|
@ -64,12 +64,13 @@ pycode_tgts = [('fevent', 0, 0), ('fattr', 0, 1)]
|
||||
#-------------------------------------------------------------------------
|
||||
class Marriage:
|
||||
|
||||
def __init__(self,family,db,callback):
|
||||
def __init__(self,family,db,callback,update):
|
||||
"""Initializes the Marriage class, and displays the window"""
|
||||
self.family = family
|
||||
self.db = db
|
||||
self.path = db.getSavePath()
|
||||
self.cb = callback
|
||||
self.update_fv = update
|
||||
self.pmap = {}
|
||||
|
||||
for key in db.getPlaceKeys():
|
||||
@ -499,6 +500,7 @@ class Marriage:
|
||||
self.update_lists()
|
||||
if self.lists_changed:
|
||||
Utils.modified()
|
||||
self.update_fv(self.family)
|
||||
|
||||
def on_add_clicked(self,obj):
|
||||
import EventEdit
|
||||
|
Loading…
Reference in New Issue
Block a user