Skip to content

Commit

Permalink
Fixed OMSens so file on Linux & ErrorMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRT authored and adeas31 committed Feb 1, 2020
1 parent 80ac1a4 commit 27a58f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditLIB/MainWindow.cpp
Expand Up @@ -2647,11 +2647,11 @@ void MainWindow::runOMSensPlugin()
#elif defined(Q_OS_MAC)
QPluginLoader loader(QString("%1/bin/omsensplugin.dylib").arg(Helper::OpenModelicaHome));
#else
QPluginLoader loader(QString("%1/bin/omsensplugin.so").arg(Helper::OpenModelicaHome));
QPluginLoader loader(QString("%1/bin/libomsensplugin.so").arg(Helper::OpenModelicaHome));
#endif
mpOMSensPlugin = loader.instance();
if (!mpOMSensPlugin) {
MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, tr("Failed to load OMSend plugin. %1").arg(loader.errorString()), Helper::scriptingKind, Helper::errorLevel));
MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, tr("Failed to load OMSens plugin. %1").arg(loader.errorString()), Helper::scriptingKind, Helper::errorLevel));
return;
}
}
Expand Down

0 comments on commit 27a58f1

Please sign in to comment.