diff --git a/src/calibre/gui2/actions/delete.py b/src/calibre/gui2/actions/delete.py index 1311e22c0c..0159448023 100644 --- a/src/calibre/gui2/actions/delete.py +++ b/src/calibre/gui2/actions/delete.py @@ -316,6 +316,13 @@ class DeleteAction(InterfaceAction): ids = self._get_selected_ids() if not ids: return + if not confirm('

'+ngettext( + 'The cover from the selected book will be permanently deleted. Are you sure?', + 'The covers from the {} selected books will be permanently deleted. ' + 'Are you sure?', len(ids)).format(len(ids)), + 'library_delete_covers', self.gui): + return + for id in ids: self.gui.library_view.model().db.remove_cover(id) self.gui.library_view.model().refresh_ids(ids)