mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Add confirmation dialog to delete from device
This commit is contained in:
parent
462ae5b9e2
commit
92753c6f97
@ -1523,6 +1523,11 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
||||
sm = view.selectionModel()
|
||||
sm.select(ci, sm.Select)
|
||||
else:
|
||||
if not confirm('<p>'+_('The selected books will be '
|
||||
'<b>permanently deleted</b> '
|
||||
'from your device. Are you sure?')
|
||||
+'</p>', 'library_delete_books', self):
|
||||
return
|
||||
if self.stack.currentIndex() == 1:
|
||||
view = self.memory_view
|
||||
elif self.stack.currentIndex() == 2:
|
||||
|
Loading…
x
Reference in New Issue
Block a user