Commit bd4fa7d3 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Give connect to lambda a context object

Summary: This is cleaner since it will track the life-time.

Reviewers: broulik

Reviewed By: broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14058
parent e4236e02
......@@ -116,7 +116,7 @@ bool ConfigOperation::exec()
Q_D(ConfigOperation);
QEventLoop loop;
connect(this, &ConfigOperation::finished,
connect(this, &ConfigOperation::finished, this,
[&](ConfigOperation *op) {
Q_UNUSED(op);
loop.quit();
......
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