From 2087283a4b52458e365ab7228b3a12d8fa6649f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 29 Aug 2014 20:35:36 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/tweak_book/boss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 5b14a0d691..6a3a07f606 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -1319,7 +1319,8 @@ class Boss(QObject): 'The current book is being saved in the background. Quitting now will' ' abort the save process! Finish saving first?'), 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 if not self.confirm_quit():