* src/ArgHandler.py: Check recent file for existance before trying to load that file. (bug #447)

svn: r7786
This commit is contained in:
Martin Hawlisch 2006-12-12 11:08:53 +00:00
parent 8b7b1a84e5
commit cf3b73f529
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-12-12 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/ArgHandler.py: Check recent file for existance before trying to
load that file. (bug #447)
2006-12-11 Don Allingham <don@gramps-project.org>
* src/Editors/_EditMedia.py: fix menu title (bug#755)
* src/GrampsDb/_WriteXML.py: handle XML escapes

View File

@ -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)
#-------------------------------------------------------------------------
#