summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-24 16:30:17 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-24 16:31:33 +0100
commitc90f0af043e3691d194f04e416e4d7b8a115437b (patch)
tree9b557d5ac6d3b6967a827675c9950d38ef4c6cce /src
parentAgain and again.. :) (diff)
downloadrekonq-c90f0af043e3691d194f04e416e4d7b8a115437b.tar.xz
Remember "Never for this site" urls
Also if I think this is NOT a proper solution.. BUG:227651
Diffstat (limited to 'src')
-rw-r--r--src/rekonq.kcfg3
-rw-r--r--src/walletbar.cpp9
-rw-r--r--src/webtab.cpp8
3 files changed, 18 insertions, 2 deletions
diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg
index 77d66628..0675720c 100644
--- a/src/rekonq.kcfg
+++ b/src/rekonq.kcfg
@@ -22,6 +22,9 @@
<entry name="showBookmarksPanel" type="Bool">
<default>false</default>
</entry>
+ <entry name="walletBlackList" type="StringList">
+ <default></default>
+ </entry>
</group>
<!-- New Tab Page Settings -->
diff --git a/src/walletbar.cpp b/src/walletbar.cpp
index c5d705e0..5b911585 100644
--- a/src/walletbar.cpp
+++ b/src/walletbar.cpp
@@ -28,6 +28,9 @@
#include "walletbar.h"
#include "walletbar.moc"
+// Auto Includes
+#include "rekonq.h"
+
// KDE Includes
#include <klocalizedstring.h>
#include <KIcon>
@@ -85,7 +88,11 @@ void WalletBar::rememberData()
void WalletBar::neverRememberData()
{
- // TODO: store site url (to remember never bother about)
+ // add url to the blacklist
+ QStringList list = ReKonfig::walletBlackList();
+ list << m_url.toString();
+ ReKonfig::setWalletBlackList( list );
+
notNowRememberData();
}
diff --git a/src/webtab.cpp b/src/webtab.cpp
index 645c9606..b4759995 100644
--- a/src/webtab.cpp
+++ b/src/webtab.cpp
@@ -141,7 +141,13 @@ void WebTab::loadFinished(bool)
void WebTab::createWalletBar(const QString &key, const QUrl &url)
-{
+{
+ // check if the url is in the wallet blacklist
+ QString urlString = url.toString();
+ QStringList blackList = ReKonfig::walletBlackList();
+ if( blackList.contains( urlString ) )
+ return;
+
KWebWallet *wallet = page()->wallet();
QWidget *messageBar = layout()->itemAt(0)->widget();