Skip to content

Commit

Permalink
Seems to fix first item in plugin dialog being empty
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew J. Milner <matterhorn103@proton.me>
  • Loading branch information
matterhorn103 committed Dec 11, 2023
1 parent 459cc37 commit 4baa757
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 4baa757

Please sign in to comment.