From 8cd00c49d6bf9820a4814bf3afd3edc4b7f56dee Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 13 Feb 2018 13:21:40 -0800 Subject: [PATCH] PAL: Prevent opening of Availability from WebView --- interface/resources/qml/hifi/Pal.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/resources/qml/hifi/Pal.qml b/interface/resources/qml/hifi/Pal.qml index 02971cc984..bb54ba9e57 100644 --- a/interface/resources/qml/hifi/Pal.qml +++ b/interface/resources/qml/hifi/Pal.qml @@ -48,7 +48,7 @@ Rectangle { // The letterbox used for popup messages LetterboxMessage { id: letterboxMessage; - z: 999; // Force the popup on top of everything else + z: 998; // Force the popup on top of everything else } Connections { target: GlobalServices @@ -60,7 +60,7 @@ Rectangle { // The ComboDialog used for setting availability ComboDialog { id: comboDialog; - z: 999; // Force the ComboDialog on top of everything else + z: 998; // Force the ComboDialog on top of everything else dialogWidth: parent.width - 50; dialogHeight: parent.height - 100; } @@ -1013,7 +1013,7 @@ Rectangle { } MouseArea { anchors.fill: parent; - enabled: myData.userName !== "Unknown user"; + enabled: myData.userName !== "Unknown user" && !userInfoViewer.visible; hoverEnabled: true; onClicked: { popupComboDialog("Set your availability:", @@ -1044,6 +1044,7 @@ Rectangle { HifiControls.TabletWebView { id: userInfoViewer; + z: 999; anchors { top: parent.top; bottom: parent.bottom;