From a2e45ded2dd1a9c183f1ff4ea84057f5c43972c5 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Tue, 4 Mar 2014 15:43:39 +0100 Subject: Fix forced exit from fullscreen and reload action in quicknanobrowser The tabs.currentView property was probably removed in some earlier change and is undefined, use the currentWebView property instead. Change-Id: I0fc31b0cc7191f2ed2f57c27306387f062cff2e1 Reviewed-by: Zeno Albisser --- examples/quick/quicknanobrowser/quickwindow.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/quick/quicknanobrowser/quickwindow.qml b/examples/quick/quicknanobrowser/quickwindow.qml index 4b708ffed..183e41f4f 100644 --- a/examples/quick/quicknanobrowser/quickwindow.qml +++ b/examples/quick/quicknanobrowser/quickwindow.qml @@ -55,8 +55,8 @@ ApplicationWindow { property bool isFullScreen: visibility == Window.FullScreen onIsFullScreenChanged: { // This is for the case where the system forces us to leave fullscreen. - if (!isFullScreen && tabs.currentView.state == "FullScreen") - tabs.currentView.state = "" + if (currentWebView) + currentWebView.state = isFullScreen ? "FullScreen" : "" } height: 600 @@ -83,7 +83,10 @@ ApplicationWindow { } Action { shortcut: "Ctrl+R" - onTriggered: tabs.currentView.reload() + onTriggered: { + if (currentWebView) + currentWebView.reload() + } } Action { shortcut: "Ctrl+T" -- cgit v1.2.3