X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.cpp;h=f674166c847e476db3c5eecf5e18cee14f6b2a1d;hp=45c080cd938caa7f3a0fdfdaa90cb9e1b5c2ffd4;hb=54a5d32d35101d5fbcb2687665d52415ca3a6aca;hpb=d36a37a4a2e2fa889cf12d596258f9ba4dfcc5ed diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index 45c080cd..f674166c 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -25,6 +25,7 @@ #include #include #include +#include WebPreviewItem::WebPreviewItem(const QUrl &url) : QGraphicsItem(0), // needs to be a top level item as we otherwise cannot guarantee that it's on top of other chatlines @@ -33,6 +34,7 @@ WebPreviewItem::WebPreviewItem(const QUrl &url) qreal frameWidth = 5; QWebView *webView = new QWebView; + webView->settings()->setAttribute(QWebSettings::JavascriptEnabled, false); webView->load(url); webView->resize(1000, 750); QGraphicsProxyWidget *proxyItem = new QGraphicsProxyWidget(this);