interface/qt: use clear() on enum editor combo box instead of manual removal

This commit is contained in:
jussi 2019-10-08 13:03:44 +03:00
parent 9f0490af5a
commit 6937f8870e

View File

@ -14,9 +14,7 @@ EnumEditor::EnumEditor(QWidget *parent) : QWidget(parent) {
void EnumEditor::setData(QStringList &strings) {
// Remove old entries
for (uint16_t i = 0; i < m_comboBox->count(); i++) {
m_comboBox->removeItem(i);
}
m_comboBox->clear();
// Add the new options for the combo box
m_options = strings;