mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book; Fix editor hanging when quitting during a background save operation and the save operation completes before the warning dialog is dismissed. Fixes #1363122 [Edit Book: Blocked when saving and exiting...](https://bugs.launchpad.net/calibre/+bug/1363122)
This commit is contained in:
parent
1c971b2478
commit
2087283a4b
@ -1319,7 +1319,8 @@ class Boss(QObject):
|
|||||||
'The current book is being saved in the background. Quitting now will'
|
'The current book is being saved in the background. Quitting now will'
|
||||||
' <b>abort the save process</b>! Finish saving first?'),
|
' <b>abort the save process</b>! Finish saving first?'),
|
||||||
yes_text=_('Finish &saving first'), no_text=_('&Quit immediately')):
|
yes_text=_('Finish &saving first'), no_text=_('&Quit immediately')):
|
||||||
self.start_terminal_save_indicator()
|
if self.save_manager.has_tasks:
|
||||||
|
self.start_terminal_save_indicator()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not self.confirm_quit():
|
if not self.confirm_quit():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user