* 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
b407e57a22
commit
36c54ceb8d
@ -171,7 +171,8 @@ class FamilyView:
|
|||||||
try:
|
try:
|
||||||
if self.selected_spouse:
|
if self.selected_spouse:
|
||||||
Marriage.Marriage(self.family,self.parent.db,
|
Marriage.Marriage(self.family,self.parent.db,
|
||||||
self.parent.new_after_edit)
|
self.parent.new_after_edit,
|
||||||
|
self.load_family)
|
||||||
else:
|
else:
|
||||||
AddSpouse.AddSpouse(self.parent.db,self.person,
|
AddSpouse.AddSpouse(self.parent.db,self.person,
|
||||||
self.load_family,
|
self.load_family,
|
||||||
|
@ -64,12 +64,13 @@ pycode_tgts = [('fevent', 0, 0), ('fattr', 0, 1)]
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class Marriage:
|
class Marriage:
|
||||||
|
|
||||||
def __init__(self,family,db,callback):
|
def __init__(self,family,db,callback,update):
|
||||||
"""Initializes the Marriage class, and displays the window"""
|
"""Initializes the Marriage class, and displays the window"""
|
||||||
self.family = family
|
self.family = family
|
||||||
self.db = db
|
self.db = db
|
||||||
self.path = db.getSavePath()
|
self.path = db.getSavePath()
|
||||||
self.cb = callback
|
self.cb = callback
|
||||||
|
self.update_fv = update
|
||||||
self.pmap = {}
|
self.pmap = {}
|
||||||
|
|
||||||
for key in db.getPlaceKeys():
|
for key in db.getPlaceKeys():
|
||||||
@ -499,6 +500,7 @@ class Marriage:
|
|||||||
self.update_lists()
|
self.update_lists()
|
||||||
if self.lists_changed:
|
if self.lists_changed:
|
||||||
Utils.modified()
|
Utils.modified()
|
||||||
|
self.update_fv(self.family)
|
||||||
|
|
||||||
def on_add_clicked(self,obj):
|
def on_add_clicked(self,obj):
|
||||||
import EventEdit
|
import EventEdit
|
||||||
|
Loading…
Reference in New Issue
Block a user