summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack')
-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 != "")