We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecd5eee commit 3965cd0Copy full SHA for 3965cd0
1 file changed
src/ui/input/bag/ConfigurePlayBagWidget.cpp
@@ -98,14 +98,21 @@ ConfigurePlayBagWidget::populateTreeWidget()
98
m_treeWidget->resizeColumns();
99
m_treeWidget->blockSignals(false);
100
101
- m_lowerOptionsLayout->addRow("Rate:", m_rateSpinBox);
102
- m_lowerOptionsLayout->addRow("Loop File:", m_loopCheckBox);
103
-
104
m_unselectLabel->setVisible(true);
105
m_treeWidget->setVisible(true);
106
m_okButton->setVisible(true);
107
108
enableOkButton();
+
+ // Only add the spinbox and checkbox once
+ static auto rowsAdded = false;
109
+ if (rowsAdded) {
110
+ return;
111
+ }
112
113
+ m_lowerOptionsLayout->addRow("Rate:", m_rateSpinBox);
114
+ m_lowerOptionsLayout->addRow("Loop File:", m_loopCheckBox);
115
+ rowsAdded = true;
116
}
117
118
0 commit comments