diff options
-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" |