mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
commit
53f9d031c9
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user