From 64d8eb74179c042c50696b642b081b82abd95593 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 12 Feb 2006 04:08:24 +0000 Subject: [PATCH] * src/DbPrompter.py (open_native): Use empty GRDB when opening fails. svn: r5922 --- gramps2/ChangeLog | 3 +++ gramps2/src/DbPrompter.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 2cb9143a2..45b154cc6 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-02-11 Alex Roitman + * src/DbPrompter.py (open_native): Use empty GRDB when opening fails. + 2006-02-10 Alex Roitman * src/plugins/DetDescendantReport.py (DetDescendantReport.write_endnotes): Disable writing reference diff --git a/gramps2/src/DbPrompter.py b/gramps2/src/DbPrompter.py index e74273dbc..a11c57a17 100644 --- a/gramps2/src/DbPrompter.py +++ b/gramps2/src/DbPrompter.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2005 Donald N. Allingham +# Copyright (C) 2000-2006 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 @@ -599,6 +599,8 @@ def open_native(parent,filename,filetype): # Add the file to the recent items RecentFiles.recent_files(filename,filetype) parent.build_recent_menu() + else: + parent.db = GrampsBSDDB.GrampsBSDDB() return success