1
0
Fork 0
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:
Marek Kochanowicz 2014-03-12 16:28:10 +01:00
parent 919065db32
commit 30a0c82e22

View file

@ -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;
} }