diff --git a/src/widgets/settingspages/AdvancedPage.cpp b/src/widgets/settingspages/AdvancedPage.cpp index 010773ebf..8e103ebd5 100644 --- a/src/widgets/settingspages/AdvancedPage.cpp +++ b/src/widgets/settingspages/AdvancedPage.cpp @@ -74,6 +74,13 @@ AdvancedPage::AdvancedPage() // Logs end // Timeoutbuttons + QStringList unitsForDropdown = QStringList(); + unitsForDropdown.append("s"); + unitsForDropdown.append("m"); + unitsForDropdown.append("h"); + unitsForDropdown.append("d"); + unitsForDropdown.append("w"); + std::vector durationsPerUnit = getSettings()->timeoutDurationsPerUnit; std::vector::iterator itDurationPerUnit; @@ -128,7 +135,7 @@ AdvancedPage::AdvancedPage() QComboBox *timeoutDurationUnit = *itUnitInput; timeoutDurationUnit->setObjectName(QString::number(i)); - timeoutDurationUnit->addItems(units); + timeoutDurationUnit->addItems(unitsForDropdown); timeoutDurationUnit->setCurrentText(*itUnit); timeout.append(timeoutDurationUnit);