From f56f60ff3503001550feb28d8cd592f51ef0062b Mon Sep 17 00:00:00 2001 From: Bernhard Beschow Date: Sun, 13 Dec 2009 20:47:44 +0100 Subject: move KWallet integration into WebPage --- src/webpage.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/webpage.cpp') 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 ) -- cgit v1.2.1