diff options
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 6 |
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 |