Skip to content

Commit

Permalink
Use model instance to generate the data needed by OMSens
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Apr 10, 2024
1 parent ff4a0ea commit db3cb66
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 75 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3150,7 +3150,7 @@ void MainWindow::runOMSensPlugin()
ModelWidget *pModelWidget = mpModelWidgetContainer->getCurrentModelWidget();
if (pModelWidget) {
ModelInterface *pModelInterface = qobject_cast<ModelInterface*>(mpOMSensPlugin);
pModelInterface->analyzeModel(pModelWidget->toOMSensData());
pModelInterface->analyzeModel(pModelWidget->toOMSensDataUseModelInstance());
} else {
QMessageBox::information(this, QString("%1 - %2").arg(Helper::applicationName).arg(Helper::information), tr("Please open a model before starting the OMSens plugin."), Helper::ok);
}
Expand Down
Loading

0 comments on commit db3cb66

Please sign in to comment.