diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4ea6148bc..36e2f6d0d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-12-12 Martin Hawlisch + * src/ArgHandler.py: Check recent file for existance before trying to + load that file. (bug #447) + 2006-12-11 Don Allingham * src/Editors/_EditMedia.py: fix menu title (bug#755) * src/GrampsDb/_WriteXML.py: handle XML escapes diff --git a/gramps2/src/ArgHandler.py b/gramps2/src/ArgHandler.py index cd739de3e..7b094403f 100644 --- a/gramps2/src/ArgHandler.py +++ b/gramps2/src/ArgHandler.py @@ -429,8 +429,9 @@ class ArgHandler: elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD): rf = Config.get(Config.RECENT_FILE) - filetype = Mime.get_type(rf) - self.vm.read_recent_file(rf,filetype) + if os.path.isfile(rf): + filetype = Mime.get_type(rf) + self.vm.read_recent_file(rf,filetype) #------------------------------------------------------------------------- #