forked from mirror/openmw-tes3mp
disable not editable widgets
This commit is contained in:
parent
3c60345d6b
commit
a8b11829d4
1 changed files with 4 additions and 5 deletions
|
@ -189,11 +189,10 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id, CSM
|
|||
{
|
||||
layout->addWidget (widget, i, 1);
|
||||
mWidgetMapper->addMapping (widget, i);
|
||||
}
|
||||
|
||||
if (model->flags (model->index (0, i)) & Qt::ItemIsEditable)
|
||||
{
|
||||
|
||||
if (! (model->flags (model->index (0, i)) & Qt::ItemIsEditable))
|
||||
{
|
||||
widget->setDisabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue