From cede9e773424e82ff327b3c972c3308b09daf96a Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 9 Apr 2016 21:46:51 +0100 Subject: UPDATES: Fix interval normalization When given a valid value the normalization was returning the next valid value instead of returning the given one. This caused for example the interval to be changed each time we opened the options (and thus check to be automatically activated the first time the options were accessed). --- common/updates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/updates.cpp b/common/updates.cpp index 4174a96c56..087002a7d3 100644 --- a/common/updates.cpp +++ b/common/updates.cpp @@ -42,7 +42,7 @@ int UpdateManager::normalizeInterval(int interval) { const int *val = updateIntervals; while (*val != -1) { - if (*val > interval) + if (*val >= interval) return *val; val++; } -- cgit v1.2.3