From cfbcdce095a732d7ef6a86f45f7fac48cdacbf52 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Mon, 31 Dec 2007 21:57:54 +0000 Subject: [PATCH] * src/gen/db/base.py: added missing key for reference_key in mapbase and _SIGBASE. Was preventing deleted notes being undone. Bug #1507. 2007-12-31 Gary Burton svn: r9664 --- ChangeLog | 4 ++++ src/gen/db/base.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7ecaae777..71db875ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-12-31 Gary Burton + * src/gen/db/base.py: added missing key for reference_key in mapbase and + _SIGBASE. Was preventing deleted notes being undone. Bug #1507. + 2007-12-31 Gary Burton * src/DataViews/RelationView.py: * src/Editors/_EditFamily.py: Add a signal handler for changes to events. diff --git a/src/gen/db/base.py b/src/gen/db/base.py index 3dc7c6015..adaa23a8c 100644 --- a/src/gen/db/base.py +++ b/src/gen/db/base.py @@ -90,7 +90,7 @@ KEY_TO_CLASS_MAP = {PERSON_KEY: Person.__name__, NOTE_KEY: Note.__name__} _SIGBASE = ('person', 'family', 'source', 'event', - 'media', 'place', 'repository','note') + 'media', 'place', 'repository', 'reference', 'note') class GrampsDbBookmarks: def __init__(self, default=[]): @@ -1637,7 +1637,7 @@ class GrampsDbBase(GrampsDBCallback): mapbase = (self.person_map, self.family_map, self.source_map, self.event_map, self.media_map, self.place_map, - self.repository_map, self.note_map) + self.repository_map, {}, self.note_map) self.undoindex -= 1 subitems = transaction.get_recnos() @@ -1681,7 +1681,7 @@ class GrampsDbBase(GrampsDBCallback): transaction = self.translist[self.undoindex] mapbase = (self.person_map, self.family_map, self.source_map, self.event_map, self.media_map, self.place_map, - self.repository_map, self.note_map) + self.repository_map, {}, self.note_map) subitems = transaction.get_recnos() for record_id in subitems: