Add confirmation dialog to delete from device

This commit is contained in:
Charles Haley 2010-05-16 22:12:16 +01:00
parent 462ae5b9e2
commit 92753c6f97

View File

@ -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: