8122: DB lock not checked when opening database from the recent opened trees
This commit is contained in:
parent
4873f5245b
commit
fbf3835ca0
@ -248,6 +248,13 @@ class CLIManager(object):
|
|||||||
_("Family Tree does not exist, as it has been deleted."))
|
_("Family Tree does not exist, as it has been deleted."))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if os.path.isfile(os.path.join(filename, "lock")):
|
||||||
|
self._errordialog(
|
||||||
|
_("The database is locked."),
|
||||||
|
_("Use the --force-unlock option if you are sure "
|
||||||
|
"that the database is not in use."))
|
||||||
|
return
|
||||||
|
|
||||||
if self.db_loader.read_file(filename):
|
if self.db_loader.read_file(filename):
|
||||||
# Attempt to figure out the database title
|
# Attempt to figure out the database title
|
||||||
path = os.path.join(filename, "name.txt")
|
path = os.path.join(filename, "name.txt")
|
||||||
|
Loading…
Reference in New Issue
Block a user