From 895e0bb6332549fdba30ad87bebf10a21c37f04e Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Sat, 12 Jan 2008 14:44:53 +0000 Subject: [PATCH] fix in ViewManager for bug 1580 svn: r9784 --- src/ViewManager.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ViewManager.py b/src/ViewManager.py index fda2e60e4..fb801a1b6 100644 --- a/src/ViewManager.py +++ b/src/ViewManager.py @@ -1067,6 +1067,15 @@ class ViewManager: """ Called when the recent file is loaded """ + # A recent database should already have a directory + # If not, do nothing, just return. This can be handled better if family tree + # delete/rename also updated the recent file menu info in DisplayState.py + if not os.path.isdir(filename): + QuestionDialog.ErrorDialog( + _("Could not load a recent Family Tree."), + _("Family Tree does not exists, as it has been deleted.")) + return + if self.db_loader.read_file(filename): # Attempt to figure out the database title path = os.path.join(filename, "name.txt")