1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

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

This commit is contained in:
Stanislav Bas 2015-06-03 15:51:34 +03:00
parent b25cc6bc55
commit bd46ddcf47

View file

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