Skip to content

Commit

Permalink
Fixed FMILibrary linking
Browse files Browse the repository at this point in the history
Check for the correct library type.
Removed unnecessary code.
  • Loading branch information
adeas31 committed Feb 7, 2018
1 parent 1d1f811 commit a45068d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -5924,7 +5924,7 @@ void ModelWidgetContainer::loadPreviousViewType(ModelWidget *pModelWidget)
pModelWidget->getDiagramViewToolButton()->setChecked(true);
break;
}
} else if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::CompositeModel) {
} else if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::Text) {
pModelWidget->getTextViewToolButton()->setChecked(true);
}
}
Expand Down Expand Up @@ -6044,18 +6044,6 @@ void ModelWidgetContainer::currentModelWidgetChanged(QMdiSubWindow *pSubWindow)
// update the Undo/Redo actions
pModelWidget->updateUndoRedoActions();
}
/* enable/disable the find/replace and goto line actions depending on the text editor visibility. */
if (pModelWidget && pModelWidget->getEditor()->isVisible()) {
if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::Modelica) {
enabled = true;
} else if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::Text) {
enabled = true;
} else {
enabled = false;
}
} else {
enabled = false;
}
}

/*!
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/OMEditGUI.pro
Expand Up @@ -87,7 +87,7 @@ win32 {
}
LIBS += -L../OMEditGUI/Debugger/Parser -lGDBMIParser \
-L$$(OMBUILDDIR)/lib/omc -lomantlr3 -lOMPlot -lomqwt -lomopcua \
-lOpenModelicaCompiler -lOpenModelicaRuntimeC -lfmilib -lModelicaExternalC -lomcgc -lpthread -llibfmilib -lshlwapi\
-lOpenModelicaCompiler -lOpenModelicaRuntimeC -lfmilib -lModelicaExternalC -lomcgc -lpthread -lshlwapi\
-lws2_32

INCLUDEPATH += $$(OMBUILDDIR)/include/omplot \
Expand Down

0 comments on commit a45068d

Please sign in to comment.