Skip to content

Commit

Permalink
Read operations before checking how many they are
Browse files Browse the repository at this point in the history
This fixes a bug where OMEdit says the file was generated without
debug information, when in fact it was.
  • Loading branch information
sjoelund committed Nov 26, 2015
1 parent b6e2cd2 commit 55f4584
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -846,9 +846,6 @@ 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 Expand Up @@ -882,6 +879,9 @@ void TransformationsWidget::loadTransformations()
eq->display = eq->tag;
}
variantToSource(veq["source"].toMap(), eq->info, eq->types, eq->ops);
if (!hasOperationsEnabled && eq->ops.size() > 0) {
hasOperationsEnabled = true;
}
}
parseProfiling(mProfJSONFullFileName);
fetchEquations();
Expand Down

0 comments on commit 55f4584

Please sign in to comment.