Skip to content

Commit ef9582e

Browse files
committed
Read operations before checking how many they are
This fixes a bug where OMEdit says the file was generated without debug information, when in fact it was.
1 parent 0e588f9 commit ef9582e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

OMEdit/OMEditGUI/TransformationalDebugger/TransformationsWidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,6 @@ void TransformationsWidget::loadTransformations()
846846
for (int i=0; i<eqs.size(); i++) {
847847
QVariantMap veq = eqs[i].toMap();
848848
OMEquation *eq = mEquations[i];
849-
if (!hasOperationsEnabled && eq->ops.size() > 0) {
850-
hasOperationsEnabled = true;
851-
}
852849
eq->section = veq["section"].toString();
853850
if (veq["eqIndex"].toInt() != i) {
854851
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);
@@ -882,6 +879,9 @@ void TransformationsWidget::loadTransformations()
882879
eq->display = eq->tag;
883880
}
884881
variantToSource(veq["source"].toMap(), eq->info, eq->types, eq->ops);
882+
if (!hasOperationsEnabled && eq->ops.size() > 0) {
883+
hasOperationsEnabled = true;
884+
}
885885
}
886886
parseProfiling(mProfJSONFullFileName);
887887
fetchEquations();

0 commit comments

Comments
 (0)