summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-25 12:47:30 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-25 12:47:30 +0100
commit5f59b5f0c7724662f180f82123dc5c269f41a530 (patch)
tree2f055e95dc2536b656f7b5e82a52995876fdcb58 /src
parentSimpler is better :) (diff)
downloadrekonq-5f59b5f0c7724662f180f82123dc5c269f41a530.tar.xz
Fix cookies handling.
Change WebPage ctor && setting winId for each page in the cookiejar
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: