diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-08-06 14:33:46 +0200 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-08-12 17:22:04 +0200 |
commit | 28f238e66dc23820d75ed23223855c2143e43b5e (patch) | |
tree | 9dc5150ea3bb95dd47f77385f15f261015d6401d | |
parent | ce76981fa1109965704bb4015523ba3665088b22 (diff) |
Do not take a snapshot from about:blank pages
-rw-r--r-- | src/qml/PageView.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/PageView.qml b/src/qml/PageView.qml index c4b2603..279f9d8 100644 --- a/src/qml/PageView.qml +++ b/src/qml/PageView.qml @@ -125,6 +125,12 @@ Rectangle { enabled: root.interactive function takeSnapshot() { + if (webEngineView.url == "" || webEngineView.url == "about:blank") { + tabItem.image.url = "about:blank" + tabItem.image.snapshot = null + return + } + if (tabItem.image.url == webEngineView.url || tabItem.opacity != 1.0) return |