diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-06 16:32:52 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-06 16:32:52 +0100 | 
| commit | 9e69affcf1b31df0b29d917a3bbcad3a6e851c4a (patch) | |
| tree | 7e8918f8d3de06b54dcd9980e5dc5091378f1b5a | |
| parent | 445eeab7b7f0155a9a52e8bfa5ee8d030151386e (diff) | |
fix clang build on linux
| -rw-r--r-- | logic/shortcuts.cpp | 5 | 
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 | 
