make sure we autosync on collection close

This commit is contained in:
Damien Elmes 2011-12-08 02:32:44 +09:00
parent 2aca212973
commit 6148a28bfb
2 changed files with 2 additions and 0 deletions

View file

@ -222,6 +222,7 @@ Are you sure?"""):
self.col.close()
self.col = None
self.backup()
self.onSync(auto=True, reload=False)
# Backup and auto-optimize
##########################################################################

View file

@ -33,6 +33,7 @@ profileConf = dict(
numBackups=30,
lastOptimize=intTime(),
lang="en",
disabledAddons=[],
# editing
fullSearch=False,