diff --git a/src/webui/api/searchcontroller.cpp b/src/webui/api/searchcontroller.cpp index 57b379576..015d08467 100644 --- a/src/webui/api/searchcontroller.cpp +++ b/src/webui/api/searchcontroller.cpp @@ -51,7 +51,7 @@ namespace void removeActiveSearch(ISession *session, const int id) { auto activeSearches = session->getData>(ACTIVE_SEARCHES); - if (activeSearches.remove(id) > 0) + if (activeSearches.remove(id)) session->setData(ACTIVE_SEARCHES, QVariant::fromValue(activeSearches)); } }