Fix for InMemory db close error

This commit is contained in:
prculley 2017-08-11 11:58:54 -05:00 committed by Nick Hall
parent 8760bb9f6f
commit 1d51fa4f61

View File

@ -679,7 +679,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
Close the database.
if update is False, don't change access times, etc.
"""
if self._directory:
if self._directory != ":memory:":
if update:
# This is just a dummy file to indicate last modified time of
# the database for gramps.cli.clidbman: