diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-03-27 09:58:52 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-04-12 02:30:01 +0200 |
commit | f677065af01219294bce878ce956a0185c49bdb7 (patch) | |
tree | dbf9c08ba5386d2f248b8a27b49f3d4f04ab7859 /src | |
parent | Last clean up on settings (diff) | |
download | rekonq-f677065af01219294bce878ce956a0185c49bdb7.tar.xz |
Reimplement password saving check in the same way
Tirtha did in its review request
REVIEW:101317
Diffstat (limited to 'src')
-rw-r--r-- | src/webtab.cpp | 10 |
1 files 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); |