mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
check that new comment differs from existing comment before applying
This commit is contained in:
parent
b859834eec
commit
0c8dc7a79f
1 changed files with 5 additions and 2 deletions
|
@ -2966,6 +2966,9 @@ QFuture<std::invoke_result_t<Func>> TorrentImpl::invokeAsync(Func &&func) const
|
|||
|
||||
void TorrentImpl::setComment(const QString &comment)
|
||||
{
|
||||
if (m_comment != comment)
|
||||
{
|
||||
m_comment = comment;
|
||||
deferredRequestResumeData();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue