diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 87b05ab1e9..455e5ec6a9 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -429,7 +429,6 @@ class Boss(QObject): @in_thread_job def delete_requested(self, spine_items, other_items): - QApplication.beep() self.add_savepoint(_('Before: Delete files')) self.commit_dirty_opf() c = current_container() diff --git a/src/calibre/gui2/tweak_book/file_list.py b/src/calibre/gui2/tweak_book/file_list.py index 4f4de66b69..9f5d88a260 100644 --- a/src/calibre/gui2/tweak_book/file_list.py +++ b/src/calibre/gui2/tweak_book/file_list.py @@ -748,6 +748,7 @@ class FileList(QTreeWidget, OpenWithHandler): spine_removals = [(unicode_type(item.data(0, NAME_ROLE) or ''), item.isSelected()) for item in children] other_removals = {unicode_type(item.data(0, NAME_ROLE) or '') for item in self.selectedItems() if unicode_type(item.data(0, CATEGORY_ROLE) or '') != 'text'} + QApplication.beep() self.delete_requested.emit(spine_removals, other_removals) def delete_done(self, spine_removals, other_removals):