summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-01 16:16:24 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-01 16:16:24 +0100
commitf86fb663a1decd4163f7de623363e8ae17b74e56 (patch)
tree7116a11b9a3cbf215928f6add288d1bf1430887a
parentThis is not Cedric's fix about new tab button position (diff)
downloadrekonq-f86fb663a1decd4163f7de623363e8ae17b74e56.tar.xz
Let rekonq use just KIO network cache. This will force webkit
to search in the history navigation in the right cache..
-rw-r--r--src/webpage.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 4cc9bbe3..b2bedffc 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -73,11 +73,19 @@
WebPage::WebPage(QObject *parent)
: KWebPage(parent, KWalletIntegration)
{
- // rekonq own classes integration
- setNetworkAccessManager(new NetworkAccessManager(this));
+ setForwardUnsupportedContent(true);
+
+ // rekonq Network Manager
+ NetworkAccessManager *manager = new NetworkAccessManager(this);
+
+ // disable QtWebKit cache to just use KIO one..
+ manager->setCache(0);
+
+ setNetworkAccessManager(manager);
+
+ // Web Plugin Factory
setPluginFactory(new WebPluginFactory(this));
- setForwardUnsupportedContent(true);
connect(networkAccessManager(), SIGNAL(finished(QNetworkReply*)), this, SLOT(manageNetworkErrors(QNetworkReply*)));