mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:46:52 +02:00
...
This commit is contained in:
parent
7acc25fcbc
commit
1aac334e64
1 changed files with 1 additions and 0 deletions
|
|
@ -177,6 +177,7 @@ def gui_library_changed(self, db, olddb=None):
|
|||
self.loaded_dbs[library_id] = db
|
||||
db.new_api.server_library_id = library_id
|
||||
if olddb is not None and samefile(olddb.backend.library_path, db.backend.library_path):
|
||||
# This happens after a restore database, for example
|
||||
olddb.close(), olddb.break_cycles()
|
||||
self._prune_loaded_dbs()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue