summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-14 01:59:52 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-14 01:59:52 +0200
commite5fe2754b45dc6e21911c6ea277fa0d9e7059653 (patch)
tree6f2cbf44e9e97a3bf5a9a5d1338c0a9d2a4b2db6 /src/webview.cpp
parentrekonq 0.1.98 (diff)
downloadrekonq-e5fe2754b45dc6e21911c6ea277fa0d9e7059653.tar.xz
Inserting webview winId metadata in cookiejar
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index dca8b6fb..1bf04885 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -66,6 +66,10 @@ WebView::WebView(QWidget* parent)
setPage(m_page);
connect(page(), SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&)));
+
+ const qlonglong winId = window()->winId();
+ Application::cookieJar()->setWindowId(winId);
+ Application::networkAccessManager()->metaData().insert("window-id", QString::number(winId));
}