From b051aa26ac32f7ac04c6a96801cf6af269a8c3d3 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 21 Mar 2016 12:10:16 -0500 Subject: [PATCH] Add 'are your sure' check to quit when proceed_question is waiting. --- src/calibre/gui2/ui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index fc48434741..02f0037d59 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -861,6 +861,12 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{ if not question_dialog(self, _('Active jobs'), msg): return False + + if self.proceed_question.questions: + msg = _('There are library updates waiting. Are you sure you want to quit?') + if not question_dialog(self, _('Library Updates Waiting'), msg): + return False + from calibre.db.delete_service import has_jobs if has_jobs(): msg = _('Some deleted books are still being moved to the Recycle '