Browse Source

Tweak helpers.hpp to more easily find misbehaving module widgets

tags/22.09
falkTX 3 years ago
parent
commit
392aafe17b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/helpers.hpp

+ 1
- 1
include/helpers.hpp 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;
}


Loading…
Cancel
Save