aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webview.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-05-03 01:13:38 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-05-03 01:13:38 +0200
commitf36e33a6a568026f123808c7f5c87dace6703f94 (patch)
tree1c77067c320ead831bd7bba6c59d56a94fe8216f /src/webengine/webview.cpp
parentClean up WebView (diff)
downloadsmolbote-f36e33a6a568026f123808c7f5c87dace6703f94.tar.xz
QTBUG-65223 workaround
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r--src/webengine/webview.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp
index b9dfaa7..1dca046 100644
--- a/src/webengine/webview.cpp
+++ b/src/webengine/webview.cpp
@@ -33,6 +33,14 @@ WebView::WebView(WebProfile *profile, QWidget *parent)
m_loaded = true;
});
+#if defined(QTBUG_65223_WORKAROUND)
+ connect(this, &QWebEngineView::loadProgress, this, [this](int progress) {
+ if(progress == 100) {
+ emit loadFinished(true);
+ }
+ });
+#endif
+
m_pageMenu = new PageMenu(this);
m_toolsMenu = new PageToolsMenu(this);
}