fixed keyboard shortcut implementation

This commit is contained in:
itsmattkc
2019-09-26 04:09:45 +10:00
parent 00d3932194
commit f52c60c26e
7 changed files with 56 additions and 51 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ void KeySequenceEditor::set_action_shortcut() {
}
void KeySequenceEditor::reset_to_default() {
setKeySequence(action->property("default").toString());
setKeySequence(action->property("keydefault").toString());
}
QString KeySequenceEditor::action_name() {
@@ -41,7 +41,7 @@ QString KeySequenceEditor::action_name() {
QString KeySequenceEditor::export_shortcut() {
QString ks = keySequence().toString();
if (ks != action->property("default")) {
if (ks != action->property("keydefault")) {
return action->property("id").toString() + "\t" + ks;
}
return nullptr;