forked from mirror/openmw-tes3mp
Fixed segfault opening tables
This commit is contained in:
parent
6486f342b5
commit
0ae254f6a8
1 changed files with 6 additions and 3 deletions
|
@ -217,9 +217,12 @@ void CSVWorld::Table::updateEditorSetting (const QString &settingName, const QSt
|
||||||
|
|
||||||
if (settingName == "Referenceable ID Type Display")
|
if (settingName == "Referenceable ID Type Display")
|
||||||
{
|
{
|
||||||
RefIdTypeDelegate &refidDelegate = dynamic_cast <CSVWorld::RefIdTypeDelegate &> (*itemDelegateForColumn(2));
|
RefIdTypeDelegate *refidDelegate = dynamic_cast <CSVWorld::RefIdTypeDelegate *> (itemDelegateForColumn(2));
|
||||||
|
|
||||||
refidDelegate.updateEditorSetting (settingName, settingValue);
|
if (refidDelegate)
|
||||||
emit dataChanged(mModel->index(0,1), mModel->index(mModel->rowCount()-1, 1));
|
{
|
||||||
|
refidDelegate->updateEditorSetting (settingName, settingValue);
|
||||||
|
emit dataChanged(mModel->index(0,1), mModel->index(mModel->rowCount()-1, 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue