Skip to content

Commit

Permalink
Fixed the system documentation link. Removed the link to old users gu…
Browse files Browse the repository at this point in the history
…ide.
  • Loading branch information
adeas31 committed Aug 5, 2015
1 parent ce3000a commit 6a414ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions OMEdit/OMEditGUI/MainWindow.cpp
Expand Up @@ -2082,7 +2082,7 @@ void MainWindow::openUsersGuideOldPdf()
void MainWindow::openSystemDocumentation()
{
QUrl systemDocumentationPath (QString("file:///").append(QString(Helper::OpenModelicaHome).replace("\\", "/"))
.append("/share/doc/omc/OpenModelicaSystem.pdf"));
.append("/share/doc/omc/SystemDocumentation/OpenModelicaSystem.pdf"));
if (!QDesktopServices::openUrl(systemDocumentationPath)) {
mpMessagesWidget->addGUIMessage(MessageItem(MessageItem::Modelica, "", false, 0, 0, 0, 0,
GUIMessages::getMessage(GUIMessages::UNABLE_TO_OPEN_FILE).arg(systemDocumentationPath.toString()),
Expand Down Expand Up @@ -2601,10 +2601,6 @@ void MainWindow::createActions()
mpUsersGuidePdfAction = new QAction(tr("OpenModelica Users Guide (PDF)"), this);
mpUsersGuidePdfAction->setStatusTip(tr("Opens the OpenModelica Users Guide (PDF)"));
connect(mpUsersGuidePdfAction, SIGNAL(triggered()), SLOT(openUsersGuidePdf()));
// users guide old pdf action
mpUsersGuideOldPdfAction = new QAction(tr("OpenModelica Users Guide (Old PDF)"), this);
mpUsersGuideOldPdfAction->setStatusTip(tr("Opens the OpenModelica Users Guide (Old PDF)"));
connect(mpUsersGuideOldPdfAction, SIGNAL(triggered()), SLOT(openUsersGuideOldPdf()));
// system documentation action
mpSystemDocumentationAction = new QAction(tr("OpenModelica System Documentation"), this);
mpSystemDocumentationAction->setStatusTip(tr("Opens the OpenModelica System Documentation"));
Expand Down Expand Up @@ -2875,7 +2871,6 @@ void MainWindow::createMenus()
// add actions to Help menu
pHelpMenu->addAction(mpUsersGuideAction);
pHelpMenu->addAction(mpUsersGuidePdfAction);
pHelpMenu->addAction(mpUsersGuideOldPdfAction);
pHelpMenu->addAction(mpSystemDocumentationAction);
pHelpMenu->addAction(mpOpenModelicaScriptingAction);
pHelpMenu->addAction(mpModelicaDocumentationAction);
Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/MainWindow.h
Expand Up @@ -277,7 +277,6 @@ class MainWindow : public QMainWindow
// Help Menu
QAction *mpUsersGuideAction;
QAction *mpUsersGuidePdfAction;
QAction *mpUsersGuideOldPdfAction;
QAction *mpSystemDocumentationAction;
QAction *mpOpenModelicaScriptingAction;
QAction *mpModelicaDocumentationAction;
Expand Down

0 comments on commit 6a414ac

Please sign in to comment.