From f677065af01219294bce878ce956a0185c49bdb7 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 27 Mar 2012 09:58:52 +0200 Subject: Reimplement password saving check in the same way Tirtha did in its review request REVIEW:101317 --- src/webtab.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/webtab.cpp b/src/webtab.cpp index 63affbf5..724b5d0b 100644 --- a/src/webtab.cpp +++ b/src/webtab.cpp @@ -156,9 +156,6 @@ bool WebTab::isPageLoading() void WebTab::createWalletBar(const QString &key, const QUrl &url) { - if (!ReKonfig::passwordSavingEnabled()) - return; - // check if the url is in the wallet blacklist QString urlString = url.toString(); QStringList blackList = ReKonfig::walletBlackList(); @@ -166,6 +163,13 @@ void WebTab::createWalletBar(const QString &key, const QUrl &url) return; KWebWallet *wallet = page()->wallet(); + + if (!ReKonfig::passwordSavingEnabled()) + { + wallet->rejectSaveFormDataRequest(key); + return; + } + if (m_walletBar.isNull()) { m_walletBar = new WalletBar(this); -- cgit v1.2.1