Skip to content

Commit a45068d

Browse files
committed
Fixed FMILibrary linking
Check for the correct library type. Removed unnecessary code.
1 parent 1d1f811 commit a45068d

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5924,7 +5924,7 @@ void ModelWidgetContainer::loadPreviousViewType(ModelWidget *pModelWidget)
59245924
pModelWidget->getDiagramViewToolButton()->setChecked(true);
59255925
break;
59265926
}
5927-
} else if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::CompositeModel) {
5927+
} else if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::Text) {
59285928
pModelWidget->getTextViewToolButton()->setChecked(true);
59295929
}
59305930
}
@@ -6044,18 +6044,6 @@ void ModelWidgetContainer::currentModelWidgetChanged(QMdiSubWindow *pSubWindow)
60446044
// update the Undo/Redo actions
60456045
pModelWidget->updateUndoRedoActions();
60466046
}
6047-
/* enable/disable the find/replace and goto line actions depending on the text editor visibility. */
6048-
if (pModelWidget && pModelWidget->getEditor()->isVisible()) {
6049-
if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::Modelica) {
6050-
enabled = true;
6051-
} else if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::Text) {
6052-
enabled = true;
6053-
} else {
6054-
enabled = false;
6055-
}
6056-
} else {
6057-
enabled = false;
6058-
}
60596047
}
60606048

60616049
/*!

OMEdit/OMEditGUI/OMEditGUI.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ win32 {
8787
}
8888
LIBS += -L../OMEditGUI/Debugger/Parser -lGDBMIParser \
8989
-L$$(OMBUILDDIR)/lib/omc -lomantlr3 -lOMPlot -lomqwt -lomopcua \
90-
-lOpenModelicaCompiler -lOpenModelicaRuntimeC -lfmilib -lModelicaExternalC -lomcgc -lpthread -llibfmilib -lshlwapi\
90+
-lOpenModelicaCompiler -lOpenModelicaRuntimeC -lfmilib -lModelicaExternalC -lomcgc -lpthread -lshlwapi\
9191
-lws2_32
9292

9393
INCLUDEPATH += $$(OMBUILDDIR)/include/omplot \

0 commit comments

Comments
 (0)