mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-14 05:06:44 +00:00
Editor: Undo editable column check in record add
This commit is contained in:
parent
307f04f827
commit
e6863c8f79
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue