mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Move beep to UI componenent rather than boos, since that's where it belongs
This commit is contained in:
parent
99032d9102
commit
18a8ecd534
@ -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()
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user