From 95fcee3424feac2d707994f99f726eb625cd26f4 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 23 Apr 2015 10:16:11 -0500 Subject: [PATCH] Block lib change when proceed_question has questions. --- src/calibre/gui2/actions/choose_library.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/calibre/gui2/actions/choose_library.py b/src/calibre/gui2/actions/choose_library.py index caa47ddf01..e7c4d1b4b4 100644 --- a/src/calibre/gui2/actions/choose_library.py +++ b/src/calibre/gui2/actions/choose_library.py @@ -604,5 +604,11 @@ class ChooseLibraryAction(InterfaceAction): ' are running.'), show=True) return False + if self.gui.proceed_question.questions: + warning_dialog(self.gui, _('Not allowed'), + _('You cannot change libraries until all' + ' updates are accepted or rejected.'), show=True) + return False + return True