From 5cd067aab09dfab5a2b1b9ea26b78f04d9d139ab Mon Sep 17 00:00:00 2001 From: TranRed Date: Thu, 22 Aug 2019 21:33:50 +0200 Subject: [PATCH] readded used "unused" variable --- src/widgets/settingspages/AdvancedPage.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);