summaryrefslogtreecommitdiffhomepage
path: root/opentrack/shortcuts.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-15 12:49:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-15 12:49:06 +0200
commite55842f6aed77738d34134c38ec571c397ea04f9 (patch)
tree3b42fc7f8a0a2a0cefcb9f754d08cae62bbd95d3 /opentrack/shortcuts.cpp
parent386b0884f19b5d05cbbbce2bda1be6f4dc437ece (diff)
api/shortcuts: appease pointless compiler warnings
Diffstat (limited to 'opentrack/shortcuts.cpp')
-rw-r--r--opentrack/shortcuts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentrack/shortcuts.cpp b/opentrack/shortcuts.cpp
index e1087008..4488065f 100644
--- a/opentrack/shortcuts.cpp
+++ b/opentrack/shortcuts.cpp
@@ -112,10 +112,10 @@ void Shortcuts::reload(const std::vector<std::tuple<key_opts&, fun, bool>> &keys
K k;
bind_keyboard_shortcut(k, opts, held);
keys.push_back(tt(k, [=](bool) -> void { fun(true); }, held));
+#ifndef _WIN32
const int idx = keys.size() - 1;
tt& kk_ = keys[idx];
auto& fn = std::get<1>(kk_);
-#ifndef _WIN32
connect(k.get(), &QxtGlobalShortcut::activated, [=]() -> void { fn(true); });
#endif
}