mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-09-29 08:51:14 +13:00
Corrects a minor bug in painting characterDelegate
This commit is contained in:
parent
a33789c2b4
commit
7e60cc1328
1 changed files with 0 additions and 3 deletions
|
@ -162,9 +162,6 @@ class outlineCharacterDelegate(QStyledItemDelegate):
|
||||||
character = self.mdlCharacter.getCharacterByID(index.data())
|
character = self.mdlCharacter.getCharacterByID(index.data())
|
||||||
if character:
|
if character:
|
||||||
itemIndex = character.index(Character.name.value)
|
itemIndex = character.index(Character.name.value)
|
||||||
else:
|
|
||||||
# Character ID not found in character model.
|
|
||||||
return
|
|
||||||
|
|
||||||
opt = QStyleOptionViewItem(option)
|
opt = QStyleOptionViewItem(option)
|
||||||
self.initStyleOption(opt, itemIndex)
|
self.initStyleOption(opt, itemIndex)
|
||||||
|
|
Loading…
Reference in a new issue