From 86ce9766f3ff8b5d746c5b437c8084b8b2c8fc12 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 23 Jan 2018 10:10:09 -0800 Subject: [PATCH] Fix security image index clear after back nav --- .../qml/hifi/commerce/wallet/SecurityImageSelection.qml | 4 ++++ interface/resources/qml/hifi/commerce/wallet/WalletSetup.qml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/interface/resources/qml/hifi/commerce/wallet/SecurityImageSelection.qml b/interface/resources/qml/hifi/commerce/wallet/SecurityImageSelection.qml index 1f5e67eaa5..c6c6056605 100644 --- a/interface/resources/qml/hifi/commerce/wallet/SecurityImageSelection.qml +++ b/interface/resources/qml/hifi/commerce/wallet/SecurityImageSelection.qml @@ -99,6 +99,10 @@ Item { function initModel() { gridModel.initModel(); } + + function resetSelection() { + securityImageGrid.currentIndex = -1; + } // // FUNCTION DEFINITIONS END // diff --git a/interface/resources/qml/hifi/commerce/wallet/WalletSetup.qml b/interface/resources/qml/hifi/commerce/wallet/WalletSetup.qml index 21da38def0..fd74b07465 100644 --- a/interface/resources/qml/hifi/commerce/wallet/WalletSetup.qml +++ b/interface/resources/qml/hifi/commerce/wallet/WalletSetup.qml @@ -348,6 +348,7 @@ Item { width: 200; text: "Back" onClicked: { + securityImageSelection.resetSelection(); root.activeView = "step_1"; } } @@ -516,6 +517,7 @@ Item { width: 200; text: "Back" onClicked: { + securityImageSelection.resetSelection(); root.lastPage = "step_3"; root.activeView = "step_2"; }