Skip to content

Commit

Permalink
- Added missing arguments.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19711 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Mar 24, 2014
1 parent 811640f commit d2cf3f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/GUI/MainWindow.cpp
Expand Up @@ -1389,7 +1389,7 @@ void MainWindow::importModelfromOMNotebook()
if (!file.open(QIODevice::ReadOnly))
{
QMessageBox::critical(this, QString(Helper::applicationName).append(" - ").append(Helper::error),
GUIMessages::getMessage(GUIMessages::ERROR_OPENING_FILE).arg(fileName), Helper::ok);
GUIMessages::getMessage(GUIMessages::ERROR_OPENING_FILE).arg(fileName).arg(""), Helper::ok);
hideProgressBar();
return;
}
Expand Down
10 changes: 6 additions & 4 deletions OMEdit/OMEditGUI/GUI/Widgets/VariablesWidget.cpp
Expand Up @@ -430,8 +430,9 @@ void VariablesTreeModel::insertVariablesItems(QString fileName, QString filePath
{
MessagesWidget *pMessagesWidget = mpVariablesTreeView->getVariablesWidget()->getMainWindow()->getMessagesWidget();
pMessagesWidget->addGUIMessage(new MessagesTreeItem("", false, 0, 0, 0, 0,
GUIMessages::getMessage(GUIMessages::ERROR_OPENING_FILE).arg(initFile.fileName()),
Helper::scriptingKind, Helper::errorLevel, 0, pMessagesWidget->getMessagesTreeWidget()));
GUIMessages::getMessage(GUIMessages::ERROR_OPENING_FILE).arg(initFile.fileName())
.arg(""),Helper::scriptingKind, Helper::errorLevel, 0,
pMessagesWidget->getMessagesTreeWidget()));
}
/* open the .mat file */
ModelicaMatReader matReader;
Expand Down Expand Up @@ -1234,8 +1235,9 @@ void VariablesWidget::reSimulate()
{
MessagesWidget *pMessagesWidget = mpVariablesTreeView->getVariablesWidget()->getMainWindow()->getMessagesWidget();
pMessagesWidget->addGUIMessage(new MessagesTreeItem("", false, 0, 0, 0, 0,
GUIMessages::getMessage(GUIMessages::ERROR_OPENING_FILE).arg(initFile.fileName()),
Helper::scriptingKind, Helper::errorLevel, 0, pMessagesWidget->getMessagesTreeWidget()));
GUIMessages::getMessage(GUIMessages::ERROR_OPENING_FILE).arg(initFile.fileName())
.arg(""), Helper::scriptingKind, Helper::errorLevel, 0,
pMessagesWidget->getMessagesTreeWidget()));
}
mpMainWindow->getSimulationDialog()->runSimulationExecutable(simulationOptions);
}
Expand Down

0 comments on commit d2cf3f9

Please sign in to comment.