Fix security image index clear after back nav

This commit is contained in:
Zach Fox 2018-01-23 10:10:09 -08:00
parent a1009f3332
commit 86ce9766f3
2 changed files with 6 additions and 0 deletions

View file

@ -99,6 +99,10 @@ Item {
function initModel() {
gridModel.initModel();
}
function resetSelection() {
securityImageGrid.currentIndex = -1;
}
//
// FUNCTION DEFINITIONS END
//

View file

@ -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";
}