diff --git a/src/calibre/gui2/dialogs/custom_recipes.py b/src/calibre/gui2/dialogs/custom_recipes.py index ba9bc2ddab..597ea8843c 100644 --- a/src/calibre/gui2/dialogs/custom_recipes.py +++ b/src/calibre/gui2/dialogs/custom_recipes.py @@ -271,10 +271,11 @@ class RecipeList(QWidget): # {{{ def remove(self): idx = self.view.currentIndex() if idx.isValid(): - self.model.remove((idx.row(),)) - self.select_row() - if self.model.rowCount() == 0: - self.stacks.setCurrentIndex(0) + if confirm_delete(_('Are you sure you want to permanently remove this recipe?'), 'remove-custom-recipe', parent=self): + self.model.remove((idx.row(),)) + self.select_row() + if self.model.rowCount() == 0: + self.stacks.setCurrentIndex(0) def download(self): idx = self.view.currentIndex()