Select child list improvements
svn: r1567
This commit is contained in:
parent
8cee16117c
commit
8ecc25d7b7
@ -120,6 +120,7 @@ class SelectChild:
|
|||||||
|
|
||||||
def redraw_child_list(self,filter):
|
def redraw_child_list(self,filter):
|
||||||
self.refmodel.clear()
|
self.refmodel.clear()
|
||||||
|
self.refmodel.new_model()
|
||||||
bday = self.person.getBirth().getDateObj()
|
bday = self.person.getBirth().getDateObj()
|
||||||
dday = self.person.getDeath().getDateObj()
|
dday = self.person.getDeath().getDateObj()
|
||||||
|
|
||||||
@ -182,12 +183,15 @@ class SelectChild:
|
|||||||
if self.default_name and ln == self.default_name and not iter:
|
if self.default_name and ln == self.default_name and not iter:
|
||||||
iter = new_iter
|
iter = new_iter
|
||||||
|
|
||||||
|
self.refmodel.connect_model()
|
||||||
|
|
||||||
if iter:
|
if iter:
|
||||||
self.refmodel.selection.select_iter(iter)
|
self.refmodel.selection.select_iter(iter)
|
||||||
path = self.refmodel.model.get_path(iter)
|
path = self.refmodel.model.get_path(iter)
|
||||||
col = self.add_child.get_column(0)
|
col = self.add_child.get_column(0)
|
||||||
self.add_child.scroll_to_cell(path,col,1,0.5,0.0)
|
self.add_child.scroll_to_cell(path,col,1,0.5,0.0)
|
||||||
|
|
||||||
|
|
||||||
def on_save_child_clicked(self,obj):
|
def on_save_child_clicked(self,obj):
|
||||||
store,iter = self.refmodel.selection.get_selected()
|
store,iter = self.refmodel.selection.get_selected()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user