Skip to content

Commit

Permalink
Merge pull request OpenChemistry#1523 from matterhorn103/plugin-dialo…
Browse files Browse the repository at this point in the history
…g-order-fix

Fix for first item in ordered plugin dialog being empty
  • Loading branch information
ghutchis authored Dec 12, 2023
2 parents bc85c78 + 4baa757 commit 84a7812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion avogadro/qtgui/jsonwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ void JsonWidget::buildOptionGui()
order = obj.value("order").toInt();
keys.insert(order, it.key());
} else { // object doesn't contain "order"
keys.insert(order++, it.key());
keys.insert(order, it.key());
order++;
}
} else {
keys.insert(order++, it.key());
Expand Down

0 comments on commit 84a7812

Please sign in to comment.