summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-20 09:07:45 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-20 09:07:45 +0200
commit6e5694f995454b48478e30abf432bb78dedd81c1 (patch)
tree3362b44939efa1a649da047dcf41ae54ed05a959
parent446ed900af4b0c1bad1334918a6f36c4db314d02 (diff)
shortcuts: fix osx/linux keystrokes persistingopentrack-2.3-rc19p2
-rw-r--r--opentrack/shortcuts.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/opentrack/shortcuts.cpp b/opentrack/shortcuts.cpp
index 718dd778..91480d16 100644
--- a/opentrack/shortcuts.cpp
+++ b/opentrack/shortcuts.cpp
@@ -120,6 +120,8 @@ void Shortcuts::bind_keyboard_shortcut(K &key, key_opts& k)
else {
key->setShortcut(QKeySequence::UnknownKey);
key->setEnabled(false);
+ std::shared_ptr<QxtGlobalShortcut> ptr = K();
+ key.swap(ptr);
}
if (k.keycode != "")