mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-26 12:43:07 +02:00
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:
parent
0f187dfed3
commit
250a5ded0a
1 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
d.start(row_list, current_row, view_slot=view_slot,
|
||||
set_current_callback=set_current_callback)
|
||||
return d.changed, d.rows_to_refresh
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue