From 18a8ecd534d85173c3c432f04e2a9af1251be462 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Nov 2020 22:09:33 +0530 Subject: [PATCH] Move beep to UI componenent rather than boos, since that's where it belongs --- src/calibre/gui2/tweak_book/boss.py | 1 - src/calibre/gui2/tweak_book/file_list.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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):