2007-06-12 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: detection and recovery from db errors * src/GrampsDb/_GrampsDBDir.py: detection and recovery from db errors * src/GrampsDb/_GrampsBSDDB.py: detection and recovery from db errors * src/DbManager.py: detection and recovery from db errors * src/DbState.py: detection and recovery from db errors * src/ArgHandler.py: detection and recovery from db errors svn: r8539
This commit is contained in:
@ -449,7 +449,8 @@ class ArgHandler:
|
||||
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")):
|
||||
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')
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user