summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/shortcuts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/shortcuts.cpp b/logic/shortcuts.cpp
index c72ed690..be9ae87b 100644
--- a/logic/shortcuts.cpp
+++ b/logic/shortcuts.cpp
@@ -144,7 +144,7 @@ void Shortcuts::reload(const t_keys& keys_)
const int idx = keys.size() - 1;
tt& kk_ = keys[idx];
auto fn = std::get<1>(kk_);
- connect(k, &QxtGlobalShortcut::activated, [=, fn = std::move(fn)](bool keydown) {
+ connect(k, &QxtGlobalShortcut::activated, [fn, held](bool keydown) {
if (keydown || !held)
fn(keydown);
});