mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Editor: Undo editable column check in record add
This commit is contained in:
parent
307f04f827
commit
e6863c8f79
@ -160,9 +160,7 @@ void CSMWorld::IdTable::addRecordWithData (const std::string& id,
|
|||||||
|
|
||||||
for (std::map<int, QVariant>::const_iterator iter (data.begin()); iter!=data.end(); ++iter)
|
for (std::map<int, QVariant>::const_iterator iter (data.begin()); iter!=data.end(); ++iter)
|
||||||
{
|
{
|
||||||
int columnIndex = getModelIndex(id, iter->first).column();
|
mIdCollection->setData(index, iter->first, iter->second);
|
||||||
if (mIdCollection->getColumn(columnIndex).isEditable())
|
|
||||||
mIdCollection->setData(index, iter->first, iter->second);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user