diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-03-04 15:43:39 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-06 12:02:48 +0100 |
commit | a2e45ded2dd1a9c183f1ff4ea84057f5c43972c5 (patch) | |
tree | 714a16a08f309dc93823a5808501bf118f10cbf1 | |
parent | 8fba2a40b4f6a22c80e8368974a30f791b1dc6a8 (diff) |
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 <zeno.albisser@digia.com>
-rw-r--r-- | examples/quick/quicknanobrowser/quickwindow.qml | 9 |
1 files changed, 6 insertions, 3 deletions
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" |