* 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 <gary.burton@zen.co.uk> svn: r9664
This commit is contained in:
parent
86786d2a1d
commit
cfbcdce095
@ -1,3 +1,7 @@
|
|||||||
|
2007-12-31 Gary Burton <gary.burton@zen.co.uk>
|
||||||
|
* 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 <gary.burton@zen.co.uk>
|
2007-12-31 Gary Burton <gary.burton@zen.co.uk>
|
||||||
* src/DataViews/RelationView.py:
|
* src/DataViews/RelationView.py:
|
||||||
* src/Editors/_EditFamily.py: Add a signal handler for changes to events.
|
* src/Editors/_EditFamily.py: Add a signal handler for changes to events.
|
||||||
|
@ -90,7 +90,7 @@ KEY_TO_CLASS_MAP = {PERSON_KEY: Person.__name__,
|
|||||||
NOTE_KEY: Note.__name__}
|
NOTE_KEY: Note.__name__}
|
||||||
|
|
||||||
_SIGBASE = ('person', 'family', 'source', 'event',
|
_SIGBASE = ('person', 'family', 'source', 'event',
|
||||||
'media', 'place', 'repository','note')
|
'media', 'place', 'repository', 'reference', 'note')
|
||||||
|
|
||||||
class GrampsDbBookmarks:
|
class GrampsDbBookmarks:
|
||||||
def __init__(self, default=[]):
|
def __init__(self, default=[]):
|
||||||
@ -1637,7 +1637,7 @@ class GrampsDbBase(GrampsDBCallback):
|
|||||||
|
|
||||||
mapbase = (self.person_map, self.family_map, self.source_map,
|
mapbase = (self.person_map, self.family_map, self.source_map,
|
||||||
self.event_map, self.media_map, self.place_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
|
self.undoindex -= 1
|
||||||
subitems = transaction.get_recnos()
|
subitems = transaction.get_recnos()
|
||||||
@ -1681,7 +1681,7 @@ class GrampsDbBase(GrampsDBCallback):
|
|||||||
transaction = self.translist[self.undoindex]
|
transaction = self.translist[self.undoindex]
|
||||||
mapbase = (self.person_map, self.family_map, self.source_map,
|
mapbase = (self.person_map, self.family_map, self.source_map,
|
||||||
self.event_map, self.media_map, self.place_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()
|
subitems = transaction.get_recnos()
|
||||||
for record_id in subitems:
|
for record_id in subitems:
|
||||||
|
Loading…
Reference in New Issue
Block a user