Skip to content

Commit 3c2a58e

Browse files
authored
Update share limits timer when share limits change
PR #24670.
1 parent 0c6756f commit 3c2a58e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/base/bittorrent/sessionimpl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,7 @@ bool SessionImpl::setCategoryOptions(const QString &categoryName, const Category
11661166

11671167
currentOptions = options;
11681168
storeCategories();
1169+
updateShareLimitsTimer();
11691170

11701171
for (TorrentImpl *const torrent : asConst(m_torrents))
11711172
{
@@ -1344,6 +1345,8 @@ void SessionImpl::setShareLimits(ShareLimits shareLimits)
13441345
m_globalMaxInactiveSeedingMinutes = shareLimits.inactiveSeedingTimeLimit;
13451346
m_shareLimitAction = shareLimits.action;
13461347
m_shareLimitsMode = shareLimits.mode;
1348+
1349+
updateShareLimitsTimer();
13471350
}
13481351
}
13491352

@@ -5456,6 +5459,7 @@ void SessionImpl::handleTorrentSavePathChanged(TorrentImpl *const torrent)
54565459

54575460
void SessionImpl::handleTorrentCategoryChanged(TorrentImpl *const torrent, const QString &oldCategory)
54585461
{
5462+
updateShareLimitsTimer();
54595463
emit torrentCategoryChanged(torrent, oldCategory);
54605464
}
54615465

0 commit comments

Comments
 (0)