Merge pull request #10174 from vladest/fix-snapshot-login-cancel

Check if dialog was opened from StackView and then pop or just go to …
This commit is contained in:
Seth Alves 2017-04-11 07:07:29 -07:00 committed by GitHub
commit d5f5192954

View file

@ -66,7 +66,11 @@ TabletModalWindow {
HifiConstants { id: hifi }
onCanceled: {
loginDialogRoot.Stack.view.pop()
if (loginDialogRoot.Stack.view !== null) {
loginDialogRoot.Stack.view.pop()
} else {
Tablet.getTablet("com.highfidelity.interface.tablet.system").gotoHomeScreen();
}
}
LoginDialog {