Make dropping a book onto an enumeration value in the tag browser work.

This commit is contained in:
Charles Haley 2011-04-10 13:59:07 +01:00
parent 8127e5a4fe
commit 8798e1e089

View File

@ -1518,7 +1518,7 @@ class TagsModel(QAbstractItemModel): # {{{
if node.tag.category in \ if node.tag.category in \
('tags', 'series', 'authors', 'rating', 'publisher') or \ ('tags', 'series', 'authors', 'rating', 'publisher') or \
(fm['is_custom'] and \ (fm['is_custom'] and \
fm['datatype'] in ['text', 'rating', 'series']): fm['datatype'] in ['text', 'rating', 'series', 'enumeration']):
ans |= Qt.ItemIsDropEnabled ans |= Qt.ItemIsDropEnabled
else: else:
ans |= Qt.ItemIsDropEnabled ans |= Qt.ItemIsDropEnabled