Tweak helpers.hpp to more easily find misbehaving module widgets
This commit is contained in:
parent
9d121a1e03
commit
392aafe17b
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +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);
|
||||
DISTRHO_CUSTOM_SAFE_ASSERT_RETURN(m != nullptr ? m->model->name.c_str() : "null", tmw->module == m, nullptr);
|
||||
tmw->setModel(this);
|
||||
return tmw;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue