From f797f398b25496acff4455e99c619783fce23c21 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 8 Jan 2005 21:52:57 +0000 Subject: [PATCH] * src/DbPrompter.py (NewNativeDbPrompter.chooser): Initialize natvie database before attempting to load. svn: r3886 --- ChangeLog | 2 ++ src/DbPrompter.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0585b0f25..d17232919 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ get_family_from_gramps_id,get_place_from_gramps_id, get_source_from_gramps_id,get_object_from_gramps_id): Unserialize tuple and return a proper GRAMPS object. + * src/DbPrompter.py (NewNativeDbPrompter.chooser): + Initialize natvie database before attempting to load. 2005-01-07 Don Allingham * src/gramps.glade: removal of more OptionMenus in favor diff --git a/src/DbPrompter.py b/src/DbPrompter.py index b0cc1ef41..4cd057af8 100644 --- a/src/DbPrompter.py +++ b/src/DbPrompter.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2004 Donald N. Allingham +# Copyright (C) 2000-2005 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -357,6 +357,7 @@ class NewNativeDbPrompter: if os.path.splitext(filename)[1] != ".grdb": filename = filename + ".grdb" choose.destroy() + self.parent.db = GrampsBSDDB.GrampsBSDDB() self.parent.read_file(filename) # Add the file to the recent items RecentFiles.recent_files(filename,const.app_gramps)