Fix switching libraries and geenrating a catalog could generate a catalog for the wrong library

This commit is contained in:
Kovid Goyal 2010-11-02 10:41:15 -06:00
parent d2bdd94ee6
commit 30488d82f3

View File

@ -28,6 +28,8 @@ def gui_catalog(fmt, title, dbspec, ids, out_file_name, sync, fmt_options, conne
if log is None:
log = Log()
from calibre.library import db
from calibre.utils.config import prefs
prefs.refresh()
db = db()
db.catalog_plugin_on_device_temp_mapping = dbspec