readded used "unused" variable

This commit is contained in:
TranRed 2019-08-22 21:33:50 +02:00
parent 0e3ab64bd2
commit 5cd067aab0

View file

@ -74,6 +74,13 @@ AdvancedPage::AdvancedPage()
// Logs end // Logs end
// Timeoutbuttons // Timeoutbuttons
QStringList unitsForDropdown = QStringList();
unitsForDropdown.append("s");
unitsForDropdown.append("m");
unitsForDropdown.append("h");
unitsForDropdown.append("d");
unitsForDropdown.append("w");
std::vector<QString> durationsPerUnit = std::vector<QString> durationsPerUnit =
getSettings()->timeoutDurationsPerUnit; getSettings()->timeoutDurationsPerUnit;
std::vector<QString>::iterator itDurationPerUnit; std::vector<QString>::iterator itDurationPerUnit;
@ -128,7 +135,7 @@ AdvancedPage::AdvancedPage()
QComboBox *timeoutDurationUnit = *itUnitInput; QComboBox *timeoutDurationUnit = *itUnitInput;
timeoutDurationUnit->setObjectName(QString::number(i)); timeoutDurationUnit->setObjectName(QString::number(i));
timeoutDurationUnit->addItems(units); timeoutDurationUnit->addItems(unitsForDropdown);
timeoutDurationUnit->setCurrentText(*itUnit); timeoutDurationUnit->setCurrentText(*itUnit);
timeout.append(timeoutDurationUnit); timeout.append(timeoutDurationUnit);