mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book polishing: Show a confirmation if the user selects both the add and remove jacket actions.
This commit is contained in:
parent
3941163327
commit
7c0c153d97
@ -217,6 +217,12 @@ class Polish(QDialog): # {{{
|
|||||||
return
|
return
|
||||||
ac['metadata'] = saved_prefs['metadata'] = True
|
ac['metadata'] = saved_prefs['metadata'] = True
|
||||||
self.opt_metadata.setChecked(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:
|
if not something:
|
||||||
return error_dialog(self, _('No actions selected'),
|
return error_dialog(self, _('No actions selected'),
|
||||||
_('You must select at least one action, or click Cancel.'),
|
_('You must select at least one action, or click Cancel.'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user