mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
commit
53f9d031c9
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ namespace
|
|||
void removeActiveSearch(ISession *session, const int id)
|
||||
{
|
||||
auto activeSearches = session->getData<QSet<int>>(ACTIVE_SEARCHES);
|
||||
if (activeSearches.remove(id) > 0)
|
||||
if (activeSearches.remove(id))
|
||||
session->setData(ACTIVE_SEARCHES, QVariant::fromValue(activeSearches));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue