Ensure all post-show widgets are constructed with a parent

This commit is contained in:
Jack Andersen
2018-08-19 10:42:11 -10:00
parent 303877655f
commit cefa0ac18c
3 changed files with 40 additions and 36 deletions

View File

@@ -645,7 +645,7 @@ void SoundGroupEditor::sfxDataChanged()
SFXPlayerWidget* w = qobject_cast<SFXPlayerWidget*>(m_sfxTable->indexWidget(index));
if (!w || w->sfxId() != p->first)
{
SFXPlayerWidget* newW = new SFXPlayerWidget(index, m_sfxs.m_node->m_id, p->first);
SFXPlayerWidget* newW = new SFXPlayerWidget(index, m_sfxs.m_node->m_id, p->first, m_sfxTable->viewport());
m_sfxTable->setIndexWidget(index, newW);
}
++idx;