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