projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
488a571
)
Disables JavaScript, which fixes #1089 and other issues related to modal dialogs...
author
Chris Moeller
<kode54@gmail.com>
Sun, 7 Aug 2011 23:26:55 +0000
(16:26 -0700)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 21 Jan 2012 19:09:02 +0000
(20:09 +0100)
src/qtui/webpreviewitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/webpreviewitem.cpp
b/src/qtui/webpreviewitem.cpp
index
45c080c
..
f674166
100644
(file)
--- a/
src/qtui/webpreviewitem.cpp
+++ b/
src/qtui/webpreviewitem.cpp
@@
-25,6
+25,7
@@
#include <QGraphicsProxyWidget>
#include <QPainter>
#include <QWebView>
#include <QGraphicsProxyWidget>
#include <QPainter>
#include <QWebView>
+#include <QWebSettings>
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
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;
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);
webView->load(url);
webView->resize(1000, 750);
QGraphicsProxyWidget *proxyItem = new QGraphicsProxyWidget(this);