From 392aafe17ba707f6c2ef0a6f444aa5796071b4cb Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 19 Aug 2022 04:28:04 +0100 Subject: [PATCH] Tweak helpers.hpp to more easily find misbehaving module widgets --- include/helpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/helpers.hpp b/include/helpers.hpp index 2a30f1a..7126f3f 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -68,7 +68,7 @@ struct CardinalPluginModel : CardinalPluginModelHelper tm = dynamic_cast(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; }