diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-02 01:42:30 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-02 01:42:30 +0200 |
commit | 647c384a9b77a947d1dac2a44dd376d0120ea42d (patch) | |
tree | a4c89f2a2712ab68be42d36069016a709401861c /src | |
parent | rekonq 0.2.62 with (again) a new home page layout. (diff) | |
download | rekonq-647c384a9b77a947d1dac2a44dd376d0120ea42d.tar.xz |
no more strange windows opened while loading previews :)
Diffstat (limited to 'src')
-rw-r--r-- | src/websnap.cpp | 5 |
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())); } |