mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
interface/qt: use clear() on enum editor combo box instead of manual removal
This commit is contained in:
parent
9f0490af5a
commit
6937f8870e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user