mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1926852 [[Enhancement] Warn before removing news source from the Add custom news sources window](https://bugs.launchpad.net/calibre/+bug/1926852)
This commit is contained in:
parent
5d73aa715f
commit
7f21e3692e
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user