Tweak files in preparation for Rack update

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-11-16 10:26:30 +00:00
parent 969c3e04ba
commit 5c9f4e802a
5 changed files with 31 additions and 1 deletions

View file

@ -68,6 +68,7 @@ struct CardinalPluginModel : CardinalPluginModelHelper
tm = dynamic_cast<TModule*>(m);
}
app::ModuleWidget* const tmw = new TModuleWidget(tm);
DISTRHO_SAFE_ASSERT_RETURN(tmw->module == m, nullptr);
tmw->setModel(this);
return tmw;
}
@ -81,6 +82,7 @@ struct CardinalPluginModel : CardinalPluginModelHelper
DISTRHO_SAFE_ASSERT_RETURN(tm != nullptr, nullptr);
TModuleWidget* const tmw = new TModuleWidget(tm);
DISTRHO_SAFE_ASSERT_RETURN(tmw->module == m, nullptr);
tmw->setModel(this);
widgets[m] = tmw;