diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 575978bdc3..053cea151e 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -150,6 +150,12 @@ class Boss(QObject): 'The current book is being saved in the background, quitting will abort' ' the save process, are you sure?'), default_yes=False): return False + if self.gui.action_save.isEnabled(): + if not question_dialog( + self.gui, _('Are you sure?'), _( + 'The current book has unsaved changes, you will lose them if you quit,' + ' are you sure?'), default_yes=False): + return False return True