From ebba95652f73acb98581fae4bf69f9aa27e7dacb Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 10 Feb 2006 05:10:35 +0000 Subject: [PATCH] * src/PedView.py: fix quote * src/PersonView.py: reset db and build tree on database reload * src/GrampsDb/_GrampsDbBase.py: clear active on database change svn: r5917 --- ChangeLog | 3 +++ src/GrampsDb/_GrampsDbBase.py | 2 ++ src/PedView.py | 2 +- src/PersonView.py | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1f383f700..59e0cbf53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ 2006-02-09 Don Allingham + * src/PedView.py: fix quote + * src/PersonView.py: reset db and build tree on database reload + * src/GrampsDb/_GrampsDbBase.py: clear active on database change * src/FamilyView.py: initialize Family * src/EditFamily.py: fix empty gramps_id for new families * src/GrampsWidgets.py: fix empty gramps_id for new families diff --git a/src/GrampsDb/_GrampsDbBase.py b/src/GrampsDb/_GrampsDbBase.py index a1d673a95..f3ffe4df9 100644 --- a/src/GrampsDb/_GrampsDbBase.py +++ b/src/GrampsDb/_GrampsDbBase.py @@ -2009,11 +2009,13 @@ class DbState(GrampsDBCallback): def change_database(self,db): self.db.close() self.db = db + self.active = None self.open = True self.emit('database-changed',(self.db,)) def no_database(self): self.db.close() self.db = GrampsDbBase() + self.active = None self.open = False self.emit('no-database') diff --git a/src/PedView.py b/src/PedView.py index bbcac2e38..db33de830 100644 --- a/src/PedView.py +++ b/src/PedView.py @@ -259,7 +259,7 @@ class PersonBoxWidget( gtk.DrawingArea): self.set_size_request(max(xmin,120),max(ymin,25)) def on_enter_cb(self,widget,event): - '''' On mouse-over hightlight border''' + ''' On mouse-over hightlight border''' self.border_gc.line_width = 3 self.queue_draw() diff --git a/src/PersonView.py b/src/PersonView.py index 10aab3b62..2fb3d468f 100644 --- a/src/PersonView.py +++ b/src/PersonView.py @@ -228,10 +228,12 @@ class PersonView(PageView.PersonNavView): from self.state.db """ self.build_columns() + self.db = db db.connect('person-add', self.person_added) db.connect('person-update', self.person_updated) db.connect('person-delete', self.person_removed) db.connect('person-rebuild', self.build_tree) + self.build_tree() self.generic_filter_widget.apply_filter() def goto_active_person(self,obj=None):