mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Finally able to reproduce the problem of ghost dialogs that stick around after being closed, with the add a custom new source dialog. Workaround of calling deleteLater() seems to do the trick.
This commit is contained in:
parent
db3ab1d874
commit
1ce34a51af
@ -491,8 +491,11 @@ class Scheduler(QObject):
|
|||||||
def customize_feeds(self, *args):
|
def customize_feeds(self, *args):
|
||||||
from calibre.gui2.dialogs.user_profiles import UserProfiles
|
from calibre.gui2.dialogs.user_profiles import UserProfiles
|
||||||
d = UserProfiles(self._parent, self.recipe_model)
|
d = UserProfiles(self._parent, self.recipe_model)
|
||||||
d.exec_()
|
try:
|
||||||
d.break_cycles()
|
d.exec_()
|
||||||
|
d.break_cycles()
|
||||||
|
finally:
|
||||||
|
d.deleteLater()
|
||||||
|
|
||||||
def do_download(self, urn):
|
def do_download(self, urn):
|
||||||
self.lock.lock()
|
self.lock.lock()
|
||||||
|
@ -1048,7 +1048,8 @@ def edit_metadata(db, row_list, current_row, parent=None, view_slot=None,
|
|||||||
set_current_callback=set_current_callback)
|
set_current_callback=set_current_callback)
|
||||||
return d.changed, d.rows_to_refresh
|
return d.changed, d.rows_to_refresh
|
||||||
finally:
|
finally:
|
||||||
d.hide() # possible workaround for bug reports of occasional ghost edit metadata dialog on windows
|
# possible workaround for bug reports of occasional ghost edit metadata dialog on windows
|
||||||
|
d.deleteLater()
|
||||||
|
|
||||||
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