Fix the formatter functions not being reloaded after a check library

This commit is contained in:
Charles Haley 2017-03-11 18:38:06 +01:00
parent b52ef8956c
commit dc55185da7
2 changed files with 3 additions and 4 deletions

View File

@ -493,16 +493,16 @@ class ChooseLibraryAction(InterfaceAction):
m.stop_metadata_backup()
db = m.db
db.prefs.disable_setting = True
library_path = db.library_path
d = DBCheck(self.gui, db)
d.start()
try:
d.conn.close()
m.close()
except:
pass
d.break_cycles()
self.gui.library_moved(db.library_path, call_close=not
d.closed_orig_conn)
self.gui.library_moved(library_path, call_close=False)
if d.rejected:
return
if d.error is None:

View File

@ -37,7 +37,6 @@ class DBCheck(QDialog): # {{{
self.resize(self.sizeHint() + QSize(100, 50))
self.error = None
self.db = db.new_api
self.closed_orig_conn = False
self.rejected = False
def start(self):