diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-25 12:47:30 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-25 12:47:30 +0100 |
commit | 5f59b5f0c7724662f180f82123dc5c269f41a530 (patch) | |
tree | 2f055e95dc2536b656f7b5e82a52995876fdcb58 /src | |
parent | Simpler is better :) (diff) | |
download | rekonq-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.cpp | 6 | ||||
-rw-r--r-- | src/webpage.h | 2 |
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: |