mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -1031,9 +1031,12 @@ def edit_metadata(db, row_list, current_row, parent=None, view_slot=None,
|
|||||||
if cls not in editors:
|
if cls not in editors:
|
||||||
cls = 'default'
|
cls = 'default'
|
||||||
d = editors[cls](db, parent)
|
d = editors[cls](db, parent)
|
||||||
d.start(row_list, current_row, view_slot=view_slot,
|
try:
|
||||||
set_current_callback=set_current_callback)
|
d.start(row_list, current_row, view_slot=view_slot,
|
||||||
return d.changed, d.rows_to_refresh
|
set_current_callback=set_current_callback)
|
||||||
|
return d.changed, d.rows_to_refresh
|
||||||
|
finally:
|
||||||
|
d.hide()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from calibre.gui2 import Application as QApplication
|
from calibre.gui2 import Application as QApplication
|
||||||
|
Loading…
x
Reference in New Issue
Block a user