Add an explicit hide() for the edit metadata dialog, though I dont see why it should be necessary. Maybe it will fix the phantom edit metadata dialog problem.

This commit is contained in:
Kovid Goyal 2014-08-25 17:45:48 +05:30
parent 0f187dfed3
commit 250a5ded0a

View File

@ -1031,9 +1031,12 @@ def edit_metadata(db, row_list, current_row, parent=None, view_slot=None,
if cls not in editors:
cls = 'default'
d = editors[cls](db, parent)
try:
d.start(row_list, current_row, view_slot=view_slot,
set_current_callback=set_current_callback)
return d.changed, d.rows_to_refresh
finally:
d.hide()
if __name__ == '__main__':
from calibre.gui2 import Application as QApplication