Tweak helpers.hpp to more easily find misbehaving module widgets

This commit is contained in:
falkTX 2022-08-19 04:28:04 +01:00
parent 9d121a1e03
commit 392aafe17b

View file

@ -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;
}