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).
This commit is contained in:
Thierry Crozat 2016-04-09 21:46:51 +01:00
parent 2502a4a9b2
commit cede9e7734

View File

@ -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++;
}