7119: Register history objects at startup

This commit is contained in:
Nick Hall 2014-04-10 17:17:12 +01:00
parent f8f4ab1751
commit 64d87eaeb2

View File

@ -393,6 +393,11 @@ class ViewManager(CLIManager):
self.window, self.statusbar, self.progress, self.warnbtn,
self.uimanager, self.progress_monitor, self)
# Create history objects
for nav_type in ('Person', 'Family', 'Event', 'Place', 'Source',
'Citation', 'Repository', 'Note', 'Media'):
self.uistate.register(self.dbstate, nav_type, 0)
self.dbstate.connect('database-changed', self.uistate.db_changed)
self.tags = Tags(self.uistate, self.dbstate)