mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 16:23:37 +02:00
Fix regression that broke dropping lots of books onto items in the Tag Browser
This commit is contained in:
parent
738f5b66e6
commit
d12b40a18e
1 changed files with 3 additions and 4 deletions
|
|
@ -16,8 +16,7 @@
|
|||
QIcon, QPoint, QVBoxLayout, QHBoxLayout, QComboBox, QTimer,\
|
||||
QAbstractItemModel, QVariant, QModelIndex, QMenu, QFrame,\
|
||||
QPushButton, QWidget, QItemDelegate, QString, QLabel, \
|
||||
QShortcut, QKeySequence, SIGNAL, QMimeData, QSizePolicy,\
|
||||
QToolButton
|
||||
QShortcut, QKeySequence, SIGNAL, QMimeData, QToolButton
|
||||
|
||||
from calibre.ebooks.metadata import title_sort
|
||||
from calibre.gui2 import config, NONE, gprefs
|
||||
|
|
@ -1052,12 +1051,12 @@ def handle_drop(self, on_node, ids):
|
|||
if (key == 'authors' and len(ids) >= 5):
|
||||
if not confirm('<p>'+_('Changing the authors for several books can '
|
||||
'take a while. Are you sure?')
|
||||
+'</p>', 'tag_browser_drop_authors', self.parent()):
|
||||
+'</p>', 'tag_browser_drop_authors', self.tags_view):
|
||||
return
|
||||
elif len(ids) > 15:
|
||||
if not confirm('<p>'+_('Changing the metadata for that many books '
|
||||
'can take a while. Are you sure?')
|
||||
+'</p>', 'tag_browser_many_changes', self.parent()):
|
||||
+'</p>', 'tag_browser_many_changes', self.tags_view):
|
||||
return
|
||||
|
||||
fm = self.db.metadata_for_field(key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue