From 0d75fa2f92e41dce578aef99579f21bd3f6d20fa Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Nov 2013 15:22:29 +0100 Subject: disable unreferenced shortcuts --- facetracknoir/facetracknoir.cpp | 6 ++++-- 1 file 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 -- cgit v1.2.3