Merge branch 'master' of github.com:hmeza/calibre

This commit is contained in:
Hugo Meza 2023-04-28 00:56:28 +02:00
commit 36f336ae3e

View File

@ -1153,7 +1153,6 @@ class BooksView(QTableView): # {{{
elif cc['datatype'] == 'enumeration':
set_item_delegate(colhead, self.cc_enum_delegate)
else:
if colhead in self._model.editable_cols:
dattr = colhead+'_delegate'
delegate = colhead if hasattr(self, dattr) else 'text'
set_item_delegate(colhead, getattr(self, delegate+'_delegate'))