From 92753c6f978965671005bcef32968c2a085f4857 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 16 May 2010 22:12:16 +0100 Subject: [PATCH] Add confirmation dialog to delete from device --- src/calibre/gui2/ui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 5343583f5c..c1e208625b 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -1523,6 +1523,11 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): sm = view.selectionModel() sm.select(ci, sm.Select) else: + if not confirm('
'+_('The selected books will be ' + 'permanently deleted ' + 'from your device. Are you sure?') + +'
', 'library_delete_books', self): + return if self.stack.currentIndex() == 1: view = self.memory_view elif self.stack.currentIndex() == 2: