From 0c8dc7a79f0c30ab5d6ecd346f6e53d340bbe8d7 Mon Sep 17 00:00:00 2001 From: HamletDuFromage <61667930+HamletDuFromage@users.noreply.github.com> Date: Fri, 25 Jul 2025 21:55:55 +0200 Subject: [PATCH] check that new comment differs from existing comment before applying --- src/base/bittorrent/torrentimpl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/base/bittorrent/torrentimpl.cpp b/src/base/bittorrent/torrentimpl.cpp index fdd37b208..037f31dd3 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -2966,6 +2966,9 @@ QFuture> TorrentImpl::invokeAsync(Func &&func) const void TorrentImpl::setComment(const QString &comment) { - m_comment = comment; - deferredRequestResumeData(); + if (m_comment != comment) + { + m_comment = comment; + deferredRequestResumeData(); + } }