Fix 'Preferences->Behavior->Virtual library to use when this library is opened' being applied only on calibre startup and not when switching to the library

This commit is contained in:
Kovid Goyal 2013-04-30 18:23:09 +05:30
parent b3af0799f9
commit cec0eff1c1

View file

@ -573,7 +573,8 @@ def library_moved(self, newloc, copy_structure=False, call_close=True,
self.set_window_title()
self.apply_named_search_restriction('') # reset restriction to null
self.saved_searches_changed(recount=False) # reload the search restrictions combo box
self.apply_named_search_restriction(db.prefs['gui_restriction'])
if db.prefs['virtual_lib_on_startup']:
self.apply_virtual_library(db.prefs['virtual_lib_on_startup'])
for action in self.iactions.values():
action.library_changed(db)
if olddb is not None: