mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 00:44:34 +12:00
Corrects a minor bug in painting characterDelegate
This commit is contained in:
parent
a33789c2b4
commit
7e60cc1328
|
@ -162,9 +162,6 @@ class outlineCharacterDelegate(QStyledItemDelegate):
|
|||
character = self.mdlCharacter.getCharacterByID(index.data())
|
||||
if character:
|
||||
itemIndex = character.index(Character.name.value)
|
||||
else:
|
||||
# Character ID not found in character model.
|
||||
return
|
||||
|
||||
opt = QStyleOptionViewItem(option)
|
||||
self.initStyleOption(opt, itemIndex)
|
||||
|
|
Loading…
Reference in a new issue