Limit maxCoverUpdatePerIteration to range 1..20

This commit is contained in:
craig.p.drummond
2013-09-30 18:18:04 +00:00
committed by craig.p.drummond
parent f81175b798
commit d28cf9ea50
2 changed files with 3 additions and 3 deletions

View File

@@ -724,7 +724,7 @@ int Settings::maxCoverFindPerIteration()
int Settings::maxCoverUpdatePerIteration()
{
int v=GET_INT("maxCoverUpdatePerIteration", 5);
return v<0 ? 5 : (v>20 ? 20 : v);
return v<1 ? 5 : (v>20 ? 20 : v);
}
void Settings::removeConnectionDetails(const QString &v)