mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Replace deprecated Qt functions
QSet::toList() is replaced by QSet::values()
This commit is contained in:
parent
c1e0207454
commit
6fd678195c
6 changed files with 9 additions and 9 deletions
|
@ -726,7 +726,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;
|
||||
}
|
||||
|
@ -738,7 +738,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;
|
||||
}
|
||||
|
@ -3752,7 +3752,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