From 8da132f9e4bf212f9560e6fae50950fa4e46d06d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 Sep 2014 17:49:53 +0530 Subject: [PATCH] Tag Browser: Fix drag and drop of books onto a language not setting the language. Fixes #1373504 [Cannot set language by drag-and-drop](https://bugs.launchpad.net/calibre/+bug/1373504) --- src/calibre/gui2/tag_browser/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tag_browser/model.py b/src/calibre/gui2/tag_browser/model.py index 8a6a082012..687458916b 100644 --- a/src/calibre/gui2/tag_browser/model.py +++ b/src/calibre/gui2/tag_browser/model.py @@ -733,7 +733,7 @@ class TagsModel(QAbstractItemModel): # {{{ if node.type == TagTreeItem.TAG: fm = self.db.metadata_for_field(node.tag.category) if node.tag.category in \ - ('tags', 'series', 'authors', 'rating', 'publisher') or \ + ('tags', 'series', 'authors', 'rating', 'publisher', 'languages') or \ (fm['is_custom'] and ( fm['datatype'] in ['text', 'rating', 'series', 'enumeration'] or ( @@ -1101,7 +1101,7 @@ class TagsModel(QAbstractItemModel): # {{{ ans |= Qt.ItemIsDragEnabled fm = self.db.metadata_for_field(node.tag.category) if node.tag.category in \ - ('tags', 'series', 'authors', 'rating', 'publisher') or \ + ('tags', 'series', 'authors', 'rating', 'publisher', 'languages') or \ (fm['is_custom'] and fm['datatype'] in ['text', 'rating', 'series', 'enumeration']): ans |= Qt.ItemIsDropEnabled