revise keyboard shortcuts to be translatable

Fixes #1459
This commit is contained in:
itsmattkc
2021-08-12 14:31:31 -07:00
parent f6e510025d
commit 5e7cb068d9
6 changed files with 86 additions and 86 deletions
+3 -3
View File
@@ -45,9 +45,9 @@ QString KeySequenceEditor::action_name() {
}
QString KeySequenceEditor::export_shortcut() {
QString ks = keySequence().toString();
if (ks != action->property("keydefault")) {
return action->property("id").toString() + "\t" + ks;
QKeySequence ks = keySequence();
if (ks != action->property("keydefault").value<QKeySequence>()) {
return action->property("id").toString() + "\t" + ks.toString();
}
return nullptr;
}