summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp6
-rw-r--r--src/webpage.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index b5318874..98a66fe0 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -71,7 +71,7 @@
#include <QtGui/QKeyEvent>
-WebPage::WebPage(QObject *parent)
+WebPage::WebPage(QWidget *parent)
: KWebPage(parent, KWalletIntegration)
{
setForwardUnsupportedContent(true);
@@ -82,6 +82,10 @@ WebPage::WebPage(QObject *parent)
// disable QtWebKit cache to just use KIO one..
manager->setCache(0);
+ // set cookieJar window ID..
+ if (parent && parent->window())
+ manager->setCookieJarWindowId(parent->window()->winId());
+
setNetworkAccessManager(manager);
// Web Plugin Factory
diff --git a/src/webpage.h b/src/webpage.h
index f76fd334..c9b78927 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -53,7 +53,7 @@ class WebPage : public KWebPage
Q_OBJECT
public:
- explicit WebPage(QObject *parent = 0);
+ explicit WebPage(QWidget *parent = 0);
~WebPage();
public slots: