Commit 5388c24e authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Properly connect to lambda function

prefer the overload where both sides of the connect have objects
attached.
parent 8589376e
......@@ -134,7 +134,7 @@ void WaylandTasksModel::Private::initWayland()
KWayland::Client::Registry *registry = new KWayland::Client::Registry(q);
registry->create(connection);
QObject::connect(registry, &KWayland::Client::Registry::plasmaWindowManagementAnnounced, [this, registry] (quint32 name, quint32 version) {
QObject::connect(registry, &KWayland::Client::Registry::plasmaWindowManagementAnnounced, q, [this, registry] (quint32 name, quint32 version) {
windowManagement = registry->createPlasmaWindowManagement(name, version, q);
QObject::connect(windowManagement, &KWayland::Client::PlasmaWindowManagement::interfaceAboutToBeReleased, q,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment