Properly connect to lambda function

prefer the overload where both sides of the connect have objects
attached.
wilder-portage-prov
Aleix Pol 6 years ago
parent 8589376e7e
commit 5388c24e68
  1. 2
      libtaskmanager/waylandtasksmodel.cpp

@ -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,

Loading…
Cancel
Save