1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 18:09:40 +00:00

Use default constructor for ItemFlags

This commit is contained in:
Andrei Kortunov 2020-06-23 10:01:36 +04:00
parent 8b02263341
commit 0bb9322a69

View file

@ -116,7 +116,7 @@ bool CSMWorld::IdTree::setData (const QModelIndex &index, const QVariant &value,
Qt::ItemFlags CSMWorld::IdTree::flags (const QModelIndex & index) const
{
if (!index.isValid())
return 0;
return Qt::ItemFlags();
if (index.internalId() != 0)
{