From b478a22ed24d4ea1df6af6c45b9dcff0b4f7efd3 Mon Sep 17 00:00:00 2001 From: dante ruiz Date: Fri, 20 Sep 2019 15:25:10 -0700 Subject: [PATCH] fix edge case --- .../hifi/tablet/tabletWindows/TabletPreferencesDialog.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/interface/resources/qml/hifi/tablet/tabletWindows/TabletPreferencesDialog.qml b/interface/resources/qml/hifi/tablet/tabletWindows/TabletPreferencesDialog.qml index 8e8a262107..66661843e6 100644 --- a/interface/resources/qml/hifi/tablet/tabletWindows/TabletPreferencesDialog.qml +++ b/interface/resources/qml/hifi/tablet/tabletWindows/TabletPreferencesDialog.qml @@ -43,7 +43,9 @@ Item { } if (HMD.active) { - if (gotoPreviousApp) { + if (gotoPreviousAppFromScript) { + dialog.parent.sendToScript("returnToPreviousApp"); + } else if (gotoPreviousApp) { tablet.returnToPreviousApp(); } else { tablet.popFromStack(); @@ -60,7 +62,9 @@ Item { } if (HMD.active) { - if (gotoPreviousApp) { + if (gotoPreviousAppFromScript) { + dialog.parent.sendToScript("returnToPreviousApp"); + } else if (gotoPreviousApp) { tablet.returnToPreviousApp(); } else { tablet.popFromStack();