summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-22 15:22:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-22 15:22:29 +0100
commit0d75fa2f92e41dce578aef99579f21bd3f6d20fa (patch)
tree67ae253ac674b841349184902c40a49398f9aaa9 /facetracknoir/facetracknoir.cpp
parent8c762f5143efe2cc3437ae5b3d8d5159c6593957 (diff)
disable unreferenced shortcuts
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index 1227f6a0..b000b304 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -758,9 +758,11 @@ void FaceTrackNoIR::bind_keyboard_shortcut(QxtGlobalShortcut& key, const QString
seq = "Alt+" + seq;
if (iniFile.value(QString("Ctrl_%1").arg(label), false).toBool())
seq = "Ctrl+" + seq;
- key.setShortcut(QKeySequence::fromString(seq));
+ key.setShortcut(QKeySequence::fromString(seq, QKeySequence::PortableText));
key.setEnabled();
- }
+ } else {
+ key.setDisabled();
+ }
}
}
#else