diff --git a/gmenu-dbusmenu-proxy/menu.cpp b/gmenu-dbusmenu-proxy/menu.cpp index 9bac4b9f1..57ee802c9 100644 --- a/gmenu-dbusmenu-proxy/menu.cpp +++ b/gmenu-dbusmenu-proxy/menu.cpp @@ -109,7 +109,11 @@ void Menu::stop(const QList &ids) // TODO is there a nicer algorithm for that? // TODO remove all m_menus also? m_subscriptions.erase( +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) std::remove_if(m_subscriptions.begin(), m_subscriptions.end(), std::bind(&QList::contains, m_subscriptions, std::placeholders::_1)), +#else + std::remove_if(m_subscriptions.begin(), m_subscriptions.end(), std::bind(&QList::contains, m_subscriptions, std::placeholders::_1)), +#endif m_subscriptions.end()); if (m_subscriptions.isEmpty()) {