Skip to content

Commit

Permalink
More structuring of OMSimulator files
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Nov 24, 2018
1 parent e8953bb commit 2e15199
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 592 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -4195,7 +4195,7 @@ void LibraryWidget::openOMSModelFile(QFileInfo fileInfo, bool showProgress)
if (showProgress) {
MainWindow::instance()->getStatusBar()->clearMessage();
}
OMSProxy::instance()->unloadModel(modelName);
OMSProxy::instance()->omsDelete(modelName);
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -4347,7 +4347,7 @@ bool ModelWidget::omsimulatorEditorTextChanged()
// model name has changed
if (mpLibraryTreeItem->getNameStructure().compare(modelName) != 0) {
// unload the old model from OMSimulator
OMSProxy::instance()->unloadModel(mpLibraryTreeItem->getNameStructure());
OMSProxy::instance()->omsDelete(mpLibraryTreeItem->getNameStructure());
// Update to the new name
mpLibraryTreeItem->setName(modelName);
mpLibraryTreeItem->setNameStructure(modelName);
Expand Down

0 comments on commit 2e15199

Please sign in to comment.