summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-13 20:47:44 +0100
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-14 03:01:06 +0100
commitf56f60ff3503001550feb28d8cd592f51ef0062b (patch)
tree46bf504cd08de9938a133aaa247dae6500b18237 /src/webpage.cpp
parentrekonq 0.3.20 (diff)
downloadrekonq-f56f60ff3503001550feb28d8cd592f51ef0062b.tar.xz
move KWallet integration into WebPage
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index a6c37906..8d605a81 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -81,6 +81,7 @@ WebPage::WebPage(QObject *parent)
connect(networkAccessManager(), SIGNAL(finished(QNetworkReply*)), this, SLOT(manageNetworkErrors(QNetworkReply*)));
connect(this, SIGNAL(unsupportedContent(QNetworkReply *)), this, SLOT(handleUnsupportedContent(QNetworkReply *)));
+ connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool)));
}
@@ -182,6 +183,17 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
}
+void WebPage::loadFinished(bool)
+{
+ // KWallet Integration
+ // TODO: Add check for sites exempt from automatic form filling...
+ if (wallet())
+ {
+ wallet()->fillFormData(mainFrame());
+ }
+}
+
+
void WebPage::manageNetworkErrors(QNetworkReply* reply)
{
if( reply->error() == QNetworkReply::NoError )