summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-02 01:42:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-02 01:42:30 +0200
commit647c384a9b77a947d1dac2a44dd376d0120ea42d (patch)
treea4c89f2a2712ab68be42d36069016a709401861c /src
parentrekonq 0.2.62 with (again) a new home page layout. (diff)
downloadrekonq-647c384a9b77a947d1dac2a44dd376d0120ea42d.tar.xz
no more strange windows opened while loading previews :)
Diffstat (limited to 'src')
-rw-r--r--src/websnap.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/websnap.cpp b/src/websnap.cpp
index d7871adc..284e8fc5 100644
--- a/src/websnap.cpp
+++ b/src/websnap.cpp
@@ -50,6 +50,11 @@ WebSnap::WebSnap(const QUrl &url)
// this to not register websnap history
m_page.settings()->setAttribute(QWebSettings::PrivateBrowsingEnabled, true);
+
+ // this to not let this page open other windows
+ m_page.settings()->setAttribute(QWebSettings::PluginsEnabled, false);
+ m_page.settings()->setAttribute(QWebSettings::JavascriptEnabled, false);
+
connect(&m_page, SIGNAL(loadFinished(bool)), this, SLOT(saveResult(bool)));
QTimer::singleShot(0, this, SLOT(load()));
}