mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:43:44 +02: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
1 changed files with 5 additions and 4 deletions
|
|
@ -271,10 +271,11 @@ def item_activated(self, idx):
|
|||
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…
Reference in a new issue