Browse Source

Merge pull request #9800 from Chocobo1/warning

Fix compiler warnings
adaptive-webui-19844
Mike Tzou 6 years ago committed by GitHub
parent
commit
53f9d031c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/webui/api/searchcontroller.cpp

2
src/webui/api/searchcontroller.cpp

@ -51,7 +51,7 @@ namespace @@ -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…
Cancel
Save