Skip to content

Commit

Permalink
Merge pull request #1136 from ghutchis/fix-more-theory-key-bugs
Browse files Browse the repository at this point in the history
Fix bug with "combined rows" like Theory / Basis set
  • Loading branch information
ghutchis authored Aug 25, 2022
2 parents db4a419 + 2b182d4 commit 2e32152
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avogadro/qtgui/jsonwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ void JsonWidget::combinedOptionRow(const QString& label1, const QString& label2,
if (option1) {
widget1->setObjectName(label1);
hbox->addWidget(widget1);
m_widgets.insert(tr1, widget1);
m_widgets.insert(label1, widget1);
}
if (option2) {
widget2->setObjectName(label1);
widget2->setObjectName(label2);
hbox->addWidget(widget2);
m_widgets.insert(tr2, widget2);
m_widgets.insert(label2, widget2);
}
hbox->addStretch();

Expand Down

0 comments on commit 2e32152

Please sign in to comment.