From 20e86ce8e47202a5abf58f854137c2803e17bf0d Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sun, 16 Oct 2022 12:12:36 +0200 Subject: [PATCH] GlosSIConfig: Fix steam shortcuts updating when editing non added shortcuts --- GlosSIConfig/qml/main.qml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/GlosSIConfig/qml/main.qml b/GlosSIConfig/qml/main.qml index 7e22a54..27836a9 100644 --- a/GlosSIConfig/qml/main.qml +++ b/GlosSIConfig/qml/main.qml @@ -475,13 +475,15 @@ Window { if (windowContent.editedIndex < 0) { uiModel.addTarget(shortcut) } else { - if (uiModel.updateTarget(windowContent.editedIndex, shortcut)) { - if (steamShortcutsChanged == false) { - steamChangedDialog.open(); - } - } else { - manualInfo = uiModel.manualProps(shortcut); - writeErrorDialog.open(); + if (uiModel.isInSteam(shortcut)) { + if (uiModel.updateTarget(windowContent.editedIndex, shortcut)) { + if (steamShortcutsChanged == false) { + steamChangedDialog.open(); + } + } else { + manualInfo = uiModel.manualProps(shortcut); + writeErrorDialog.open(); + } } } }