summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
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 )