From: Deniz Türkoglu Date: Thu, 13 Feb 2014 11:44:21 +0000 (+0100) Subject: Disable webpreview to avoid user interactaction X-Git-Tag: 0.10-beta1~4 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=aff2b5e81f0e45f95c0e15303a9ec4e7ea36c555;hp=5cd33e3933873a41be78b229bca15295f9b7b01b Disable webpreview to avoid user interactaction If the user interacts with the webview, for instance click a button or type text in it, it crashes the client. Disable the webview so we still get the previews but can't interact with them. --- diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index d5032cd3..99bb5538 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -36,6 +36,7 @@ WebPreviewItem::WebPreviewItem(const QUrl &url) QWebView *webView = new QWebView; webView->settings()->setAttribute(QWebSettings::JavascriptEnabled, false); webView->load(url); + webView->setDisabled(true); webView->resize(1000, 750); QGraphicsProxyWidget *proxyItem = new QGraphicsProxyWidget(this); proxyItem->setWidget(webView);