This commit is contained in:
Kovid Goyal 2015-03-16 17:11:00 +05:30
parent 19d9c8bd04
commit 9de8f9589a

View File

@ -809,13 +809,13 @@ class TagsModel(QAbstractItemModel): # {{{
key = on_node.tag.category
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.gui_parent):
'take a while. Are you sure?') +
'</p>', 'tag_browser_drop_authors', self.gui_parent):
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.gui_parent):
'can take a while. Are you sure?') +
'</p>', 'tag_browser_many_changes', self.gui_parent):
return
fm = self.db.metadata_for_field(key)
@ -1428,4 +1428,3 @@ class TagsModel(QAbstractItemModel): # {{{
process_level(self.index(i, 0, QModelIndex()))
# }}}