From 3410f91d3f7e6baa8596f6bf11c30ac257e16a59 Mon Sep 17 00:00:00 2001 From: Mark Yu Date: Mon, 14 Jul 2025 14:08:14 -0400 Subject: [PATCH] Update src/webui/api/torrentscontroller.cpp Co-authored-by: Chocobo1 --- src/webui/api/torrentscontroller.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 1880a6ba3..c7c58e0cd 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -1368,9 +1368,9 @@ void TorrentsController::setShareLimitsAction() const qlonglong seedingTimeLimit = params()[u"seedingTimeLimit"_s].toLongLong(); const qlonglong inactiveSeedingTimeLimit = params()[u"inactiveSeedingTimeLimit"_s].toLongLong(); const int shareLimitActionParamValue = params()[u"shareLimitAction"_s].toInt(); - const BitTorrent::ShareLimitAction shareLimitAction = (shareLimitActionParamValue >= 0) && (shareLimitActionParamValue <= 3) - ? static_cast(shareLimitActionParamValue) - : BitTorrent::ShareLimitAction::Default; + const BitTorrent::ShareLimitAction shareLimitAction = ((shareLimitActionParamValue >= 0) && (shareLimitActionParamValue <= 3)) + ? static_cast(shareLimitActionParamValue) + : BitTorrent::ShareLimitAction::Default; const QStringList hashes = params()[u"hashes"_s].split(u'|');