Commit 439feca2 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Use context argument in lambda connect

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14074
parent 94d19d7e
......@@ -91,7 +91,7 @@ void KScreenDaemon::init()
action->setText(i18n("Switch Display" ));
QList<QKeySequence> switchDisplayShortcuts({Qt::Key_Display, Qt::MetaModifier + Qt::Key_P});
KGlobalAccel::self()->setGlobalShortcut(action, switchDisplayShortcuts);
connect(action, &QAction::triggered, [&](bool) { displayButton(); });
connect(action, &QAction::triggered, this, [&](bool) { displayButton(); });
new KScreenAdaptor(this);
// Initialize OSD manager to register its dbus interface
......
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