diff --git a/wayland_server.cpp b/wayland_server.cpp index fa53d3e82b..0ff9787c52 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -734,7 +734,7 @@ quint16 WaylandServer::createClientId(ClientConnection *c) #if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) const QSet ids(m_clientIds.constBegin(), m_clientIds.constEnd()); #else - const auto ids = m_clientIds.toSet(); + const auto ids = m_clientIds.values().toSet(); #endif quint16 id = 1; if (!ids.isEmpty()) {