1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 14:09:39 +00:00

fixed a segfault when opening views for tables that do not allow the creation of new records

This commit is contained in:
Marc Zinnschlag 2013-08-24 15:33:46 +02:00
parent 948cb0ef34
commit 51fbb0f3f4

View file

@ -63,6 +63,8 @@ CSVWorld::TableBottomBox::TableBottomBox (const CreatorFactoryBase& creatorFacto
mCreator = creatorFactory.makeCreator (data, undoStack, id);
if (mCreator)
{
mLayout->addWidget (mCreator);
connect (mCreator, SIGNAL (done()), this, SLOT (createRequestDone()));
@ -70,6 +72,7 @@ CSVWorld::TableBottomBox::TableBottomBox (const CreatorFactoryBase& creatorFacto
connect (mCreator, SIGNAL (requestFocus (const std::string&)),
this, SIGNAL (requestFocus (const std::string&)));
}
}
void CSVWorld::TableBottomBox::setEditLock (bool locked)
{