Handle typo

pull/2921/head
Bret Curtis 5 years ago
parent 8d3b1b90b1
commit 8f9c3e28d9

@ -108,7 +108,8 @@ void CSVWorld::EnumDelegate::paint (QPainter *painter, const QStyleOptionViewIte
const QModelIndex& index) const
{
int valueIndex = getValueIndex(index);
if (valueIndex != -
if (valueIndex != -1)
{
QStyleOptionViewItem itemOption(option);
itemOption.text = mValues.at(valueIndex).second;
QApplication::style()->drawControl(QStyle::CE_ItemViewItem, &itemOption, painter);

Loading…
Cancel
Save