Browse Source

Check that setModule() was called in ModuleWidget constructor.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
93c4e087b5
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      include/helpers.hpp

+ 1
- 0
include/helpers.hpp View File

@@ -35,6 +35,7 @@ plugin::Model* createModel(std::string slug) {
tm = dynamic_cast<TModule*>(m);
}
app::ModuleWidget* mw = new TModuleWidget(tm);
assert(mw->module == m);
mw->setModel(this);
return mw;
}


Loading…
Cancel
Save