diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-20 09:07:45 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-20 09:07:45 +0200 |
commit | 6e5694f995454b48478e30abf432bb78dedd81c1 (patch) | |
tree | 3362b44939efa1a649da047dcf41ae54ed05a959 | |
parent | 446ed900af4b0c1bad1334918a6f36c4db314d02 (diff) |
shortcuts: fix osx/linux keystrokes persistingopentrack-2.3-rc19p2
-rw-r--r-- | opentrack/shortcuts.cpp | 2 |
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 != "") |