mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that broke dropping lots of books onto items in the Tag Browser
This commit is contained in:
parent
738f5b66e6
commit
d12b40a18e
@ -16,8 +16,7 @@ from PyQt4.Qt import Qt, QTreeView, QApplication, pyqtSignal, QFont, QSize, \
|
|||||||
QIcon, QPoint, QVBoxLayout, QHBoxLayout, QComboBox, QTimer,\
|
QIcon, QPoint, QVBoxLayout, QHBoxLayout, QComboBox, QTimer,\
|
||||||
QAbstractItemModel, QVariant, QModelIndex, QMenu, QFrame,\
|
QAbstractItemModel, QVariant, QModelIndex, QMenu, QFrame,\
|
||||||
QPushButton, QWidget, QItemDelegate, QString, QLabel, \
|
QPushButton, QWidget, QItemDelegate, QString, QLabel, \
|
||||||
QShortcut, QKeySequence, SIGNAL, QMimeData, QSizePolicy,\
|
QShortcut, QKeySequence, SIGNAL, QMimeData, QToolButton
|
||||||
QToolButton
|
|
||||||
|
|
||||||
from calibre.ebooks.metadata import title_sort
|
from calibre.ebooks.metadata import title_sort
|
||||||
from calibre.gui2 import config, NONE, gprefs
|
from calibre.gui2 import config, NONE, gprefs
|
||||||
@ -1052,12 +1051,12 @@ class TagsModel(QAbstractItemModel): # {{{
|
|||||||
if (key == 'authors' and len(ids) >= 5):
|
if (key == 'authors' and len(ids) >= 5):
|
||||||
if not confirm('<p>'+_('Changing the authors for several books can '
|
if not confirm('<p>'+_('Changing the authors for several books can '
|
||||||
'take a while. Are you sure?')
|
'take a while. Are you sure?')
|
||||||
+'</p>', 'tag_browser_drop_authors', self.parent()):
|
+'</p>', 'tag_browser_drop_authors', self.tags_view):
|
||||||
return
|
return
|
||||||
elif len(ids) > 15:
|
elif len(ids) > 15:
|
||||||
if not confirm('<p>'+_('Changing the metadata for that many books '
|
if not confirm('<p>'+_('Changing the metadata for that many books '
|
||||||
'can take a while. Are you sure?')
|
'can take a while. Are you sure?')
|
||||||
+'</p>', 'tag_browser_many_changes', self.parent()):
|
+'</p>', 'tag_browser_many_changes', self.tags_view):
|
||||||
return
|
return
|
||||||
|
|
||||||
fm = self.db.metadata_for_field(key)
|
fm = self.db.metadata_for_field(key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user