mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Merge pull request #11430 from Chocobo1/qt
Fix integer narrowing on x86
This commit is contained in:
commit
565eb4cdc8
7 changed files with 10 additions and 10 deletions
|
@ -730,7 +730,7 @@ bool Session::addTag(const QString &tag)
|
|||
|
||||
if (!hasTag(tag)) {
|
||||
m_tags.insert(tag);
|
||||
m_storedTags = m_tags.toList();
|
||||
m_storedTags = m_tags.values();
|
||||
emit tagAdded(tag);
|
||||
return true;
|
||||
}
|
||||
|
@ -742,7 +742,7 @@ bool Session::removeTag(const QString &tag)
|
|||
if (m_tags.remove(tag)) {
|
||||
for (TorrentHandle *const torrent : asConst(torrents()))
|
||||
torrent->removeTag(tag);
|
||||
m_storedTags = m_tags.toList();
|
||||
m_storedTags = m_tags.values();
|
||||
emit tagRemoved(tag);
|
||||
return true;
|
||||
}
|
||||
|
@ -3813,7 +3813,7 @@ void Session::startUpTorrents()
|
|||
}
|
||||
|
||||
if (!queue.empty())
|
||||
fastresumes = queue + fastresumes.toSet().subtract(queue.toSet()).toList();
|
||||
fastresumes = queue + fastresumes.toSet().subtract(queue.toSet()).values();
|
||||
}
|
||||
|
||||
for (const QString &fastresumeName : asConst(fastresumes)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue