this code segfaults, but i don't know why

actorid
Marek Kochanowicz 11 years ago
parent 919065db32
commit 30a0c82e22

@ -377,14 +377,7 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id, CSM
setWidget(mainWidget);
CSMWorld::RecordBase::State state = static_cast<CSMWorld::RecordBase::State>(mTable->data (mTable->index (mRow, 1)).toInt());
if (state == CSMWorld::RecordBase::State_Deleted || state == CSMWorld::RecordBase::State_Erased)
{
mEditWidget->setDisabled(true);
} else
{
mEditWidget->setDisabled(mLocked);
}
dataChanged();
}
void CSVWorld::DialogueSubView::prevId()
@ -421,6 +414,7 @@ void CSVWorld::DialogueSubView::nextId()
if (newRow > mTable->rowCount())
{
std::cout<<"test"<<std::endl;
return;
}

Loading…
Cancel
Save