mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
@@ -51,7 +51,7 @@ namespace
|
|||||||
void removeActiveSearch(ISession *session, const int id)
|
void removeActiveSearch(ISession *session, const int id)
|
||||||
{
|
{
|
||||||
auto activeSearches = session->getData<QSet<int>>(ACTIVE_SEARCHES);
|
auto activeSearches = session->getData<QSet<int>>(ACTIVE_SEARCHES);
|
||||||
if (activeSearches.remove(id) > 0)
|
if (activeSearches.remove(id))
|
||||||
session->setData(ACTIVE_SEARCHES, QVariant::fromValue(activeSearches));
|
session->setData(ACTIVE_SEARCHES, QVariant::fromValue(activeSearches));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user