Skip to content

Commit e3d3aa7

Browse files
committed
Open the html documentation for integration methods help.
1 parent a61de9f commit e3d3aa7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,8 +1080,12 @@ void SimulationDialog::enableDasslOptions(QString method)
10801080
void SimulationDialog::showIntegrationHelp()
10811081
{
10821082
QUrl integrationAlgorithmsPath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/"))
1083-
.append("/share/doc/omc/SimulationRuntime/IntegrationAlgorithms/IntegrationAlgorithms.pdf"));
1084-
QDesktopServices::openUrl(integrationAlgorithmsPath);
1083+
.append("/share/doc/omc/OpenModelicaUsersGuide/simulationflags.html#integration-methods"));
1084+
if (!QDesktopServices::openUrl(integrationAlgorithmsPath)) {
1085+
QString errorMessage = GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(integrationAlgorithmsPath.toString());
1086+
mpMainWindow->getMessagesWidget()->addGUIMessage(MessageItem(MessageItem::Modelica, "", false, 0, 0, 0, 0, errorMessage,
1087+
Helper::scriptingKind, Helper::errorLevel));
1088+
}
10851089
}
10861090

10871091
/*!

0 commit comments

Comments
 (0)