mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:42:58 +02:00
Merge pull request #12236 from zfox23/commerce_fixSecurityImageSelectionClear
Fix security image index clear after back nav
This commit is contained in:
commit
6f54921cb1
2 changed files with 6 additions and 0 deletions
|
@ -99,6 +99,10 @@ Item {
|
||||||
function initModel() {
|
function initModel() {
|
||||||
gridModel.initModel();
|
gridModel.initModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function resetSelection() {
|
||||||
|
securityImageGrid.currentIndex = -1;
|
||||||
|
}
|
||||||
//
|
//
|
||||||
// FUNCTION DEFINITIONS END
|
// FUNCTION DEFINITIONS END
|
||||||
//
|
//
|
||||||
|
|
|
@ -348,6 +348,7 @@ Item {
|
||||||
width: 200;
|
width: 200;
|
||||||
text: "Back"
|
text: "Back"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
securityImageSelection.resetSelection();
|
||||||
root.activeView = "step_1";
|
root.activeView = "step_1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -516,6 +517,7 @@ Item {
|
||||||
width: 200;
|
width: 200;
|
||||||
text: "Back"
|
text: "Back"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
securityImageSelection.resetSelection();
|
||||||
root.lastPage = "step_3";
|
root.lastPage = "step_3";
|
||||||
root.activeView = "step_2";
|
root.activeView = "step_2";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue