From 7c0c153d97a6aa2ea8873731c8883872555cb847 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 1 Oct 2015 09:54:37 +0530 Subject: [PATCH] E-book polishing: Show a confirmation if the user selects both the add and remove jacket actions. --- src/calibre/gui2/actions/polish.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/calibre/gui2/actions/polish.py b/src/calibre/gui2/actions/polish.py index 8750dfdc89..680c315852 100644 --- a/src/calibre/gui2/actions/polish.py +++ b/src/calibre/gui2/actions/polish.py @@ -217,6 +217,12 @@ class Polish(QDialog): # {{{ return ac['metadata'] = saved_prefs['metadata'] = True self.opt_metadata.setChecked(True) + if ac['jacket'] and ac['remove_jacket']: + if not question_dialog(self, _('Add or remove jacket?'), _( + 'You have chosen to both add and remove the metadata jacket.' + ' This will result in the final book having no jacket. Is this' + ' what you want?')): + return if not something: return error_dialog(self, _('No actions selected'), _('You must select at least one action, or click Cancel.'),