Correct the return type in IdTree::data() for Display_Role

c++11
Stanislav Bas 10 years ago
parent b25cc6bc55
commit bd46ddcf47

@ -41,7 +41,7 @@ QVariant CSMWorld::IdTree::data (const QModelIndex & index, int role) const
const NestableColumn *parentColumn = mNestedCollection->getNestableColumn(parentAddress.second);
if (role == ColumnBase::Role_Display)
return parentColumn->nestedColumn(index.column()).mColumnId;
return parentColumn->nestedColumn(index.column()).mDisplayType;
if (role == ColumnBase::Role_ColumnId)
return parentColumn->nestedColumn(index.column()).mColumnId;

Loading…
Cancel
Save