summaryrefslogtreecommitdiffhomepage
path: root/logic/shortcuts.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-11-06 16:32:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-11-06 16:32:52 +0100
commit9e69affcf1b31df0b29d917a3bbcad3a6e851c4a (patch)
tree7e8918f8d3de06b54dcd9980e5dc5091378f1b5a /logic/shortcuts.cpp
parent445eeab7b7f0155a9a52e8bfa5ee8d030151386e (diff)
fix clang build on linux
Diffstat (limited to 'logic/shortcuts.cpp')
-rw-r--r--logic/shortcuts.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/logic/shortcuts.cpp b/logic/shortcuts.cpp
index a0027fea..377fa3e5 100644
--- a/logic/shortcuts.cpp
+++ b/logic/shortcuts.cpp
@@ -141,8 +141,9 @@ 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, held](bool keydown) {
- if (keydown || !held)
+ bool held_ = held;
+ connect(k, &QxtGlobalShortcut::activated, [fn, held_](bool keydown) {
+ if (keydown || !held_)
fn(keydown);
});
#endif