diff options
Diffstat (limited to 'src/totp/totp.cpp')
-rw-r--r-- | src/totp/totp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/totp/totp.cpp b/src/totp/totp.cpp index 105196fcd..1936cce75 100644 --- a/src/totp/totp.cpp +++ b/src/totp/totp.cpp @@ -113,7 +113,7 @@ QSharedPointer<Totp::Settings> Totp::parseSettings(const QString& rawSettings, c } // Bound digits and step - settings->digits = qMax(1u, settings->digits); + settings->digits = qBound(1u, settings->digits, 10u); settings->step = qBound(1u, settings->step, 60u); // Detect custom settings, used by setup GUI |