summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
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/webpage.cpp
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/webpage.cpp')
-rw-r--r--src/webpage.cpp6
1 files changed, 5 insertions, 1 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