Skip to content

Commit

Permalink
- check if equations has operations.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24408 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Feb 4, 2015
1 parent 905705a commit 097a10f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -844,6 +844,9 @@ void TransformationsWidget::loadTransformations()
for (int i=0; i<eqs.size(); i++) {
QVariantMap veq = eqs[i].toMap();
OMEquation *eq = mEquations[i];
if (!hasOperationsEnabled && eq->ops.size() > 0) {
hasOperationsEnabled = true;
}
eq->section = veq["section"].toString();
if (veq["eqIndex"].toInt() != i) {
QMessageBox::critical(this, QString(Helper::applicationName).append(" - ").append(Helper::parsingFailedJson), Helper::parsingFailedJson + QString(": got index ") + veq["eqIndex"].toString() + QString(" expected ") + QString::number(i), Helper::ok);
Expand Down

0 comments on commit 097a10f

Please sign in to comment.