mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 00:23:53 +00:00
this code segfaults, but i don't know why
This commit is contained in:
parent
919065db32
commit
30a0c82e22
1 changed files with 2 additions and 8 deletions
|
@ -377,14 +377,7 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id, CSM
|
||||||
|
|
||||||
setWidget(mainWidget);
|
setWidget(mainWidget);
|
||||||
|
|
||||||
CSMWorld::RecordBase::State state = static_cast<CSMWorld::RecordBase::State>(mTable->data (mTable->index (mRow, 1)).toInt());
|
dataChanged();
|
||||||
if (state == CSMWorld::RecordBase::State_Deleted || state == CSMWorld::RecordBase::State_Erased)
|
|
||||||
{
|
|
||||||
mEditWidget->setDisabled(true);
|
|
||||||
} else
|
|
||||||
{
|
|
||||||
mEditWidget->setDisabled(mLocked);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVWorld::DialogueSubView::prevId()
|
void CSVWorld::DialogueSubView::prevId()
|
||||||
|
@ -421,6 +414,7 @@ void CSVWorld::DialogueSubView::nextId()
|
||||||
|
|
||||||
if (newRow > mTable->rowCount())
|
if (newRow > mTable->rowCount())
|
||||||
{
|
{
|
||||||
|
std::cout<<"test"<<std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue