summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
-rw-r--r--src/websnap.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0cd46c68..35fdb5dd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -38,7 +38,7 @@ static const char description[] =
I18N_NOOP("A lightweight Web Browser for KDE based on WebKit");
-static const char version[] = "0.2.61";
+static const char version[] = "0.2.62";
int main(int argc, char **argv)
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()));
}