projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f732c3d
)
Disable webpreview to avoid user interactaction
author
Deniz Türkoglu
<turkoglu.deniz@gmail.com>
Thu, 13 Feb 2014 11:44:21 +0000
(12:44 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 18 Feb 2014 21:49:02 +0000
(22:49 +0100)
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.
src/qtui/webpreviewitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/webpreviewitem.cpp
b/src/qtui/webpreviewitem.cpp
index
7ee7392
..
4a135d2
100644
(file)
--- 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);