Corrects a minor bug in painting characterDelegate

This commit is contained in:
Olivier Keshavjee 2016-03-18 09:38:08 +01:00
parent a33789c2b4
commit 7e60cc1328

View file

@ -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)