2008-01-15 Benny Malengier <benny.malengier@gramps-project.org>
* src/ArgHandler.py: on autoload, do some extra checks first. svn: r9813
This commit is contained in:
parent
2225ac3d78
commit
2bcdc69ce5
@ -1,3 +1,6 @@
|
||||
2008-01-15 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/ArgHandler.py: on autoload, do some extra checks first.
|
||||
|
||||
2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||
* src/GrampsDbUtils/_GrampsDbWriteXML.py
|
||||
* src/GrampsDbUtils/_WriteGedcom.py
|
||||
|
@ -451,16 +451,11 @@ class ArgHandler:
|
||||
|
||||
elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD):
|
||||
filename = Config.get(Config.RECENT_FILE)
|
||||
self.vm.db_loader.read_file(filename)
|
||||
return (filename, const.APP_FAMTREE)
|
||||
|
||||
#if os.path.isfile(rf):
|
||||
# filetype = Mime.get_type(rf)
|
||||
# self.vm.read_recent_file(rf, filetype)
|
||||
#elif os.path.isdir(rf):
|
||||
# if os.path.isfile(os.path.join(rf, "name.txt")) and \
|
||||
# not os.path.isfile(os.path.join(rf,"need_recover")):
|
||||
# self.vm.read_recent_file(rf, 'x-directory/normal')
|
||||
if os.path.isdir(filename) and \
|
||||
os.path.isfile(os.path.join(filename, "name.txt")) and \
|
||||
not os.path.isfile(os.path.join(filename, "need_recover")):
|
||||
self.vm.db_loader.read_file(filename)
|
||||
return (filename, const.APP_FAMTREE)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user