summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-16 05:54:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-16 06:45:52 +0100
commit43665c5f8c0219836cd94ea11bc14fd64e869e93 (patch)
tree704ab4d1ca69eea518cc80409e1b0c935645e48b /logic
parentf99eef18c475df2a4080bc652774e8e9f001037c (diff)
cleanup
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);
});