mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
fixed a segfault when opening views for tables that do not allow the creation of new records
This commit is contained in:
parent
948cb0ef34
commit
51fbb0f3f4
@ -63,12 +63,15 @@ CSVWorld::TableBottomBox::TableBottomBox (const CreatorFactoryBase& creatorFacto
|
|||||||
|
|
||||||
mCreator = creatorFactory.makeCreator (data, undoStack, id);
|
mCreator = creatorFactory.makeCreator (data, undoStack, id);
|
||||||
|
|
||||||
mLayout->addWidget (mCreator);
|
if (mCreator)
|
||||||
|
{
|
||||||
|
mLayout->addWidget (mCreator);
|
||||||
|
|
||||||
connect (mCreator, SIGNAL (done()), this, SLOT (createRequestDone()));
|
connect (mCreator, SIGNAL (done()), this, SLOT (createRequestDone()));
|
||||||
|
|
||||||
connect (mCreator, SIGNAL (requestFocus (const std::string&)),
|
connect (mCreator, SIGNAL (requestFocus (const std::string&)),
|
||||||
this, SIGNAL (requestFocus (const std::string&)));
|
this, SIGNAL (requestFocus (const std::string&)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVWorld::TableBottomBox::setEditLock (bool locked)
|
void CSVWorld::TableBottomBox::setEditLock (bool locked)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user