1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

[Fix] Showing custom rules properly under custom rules now.

- if you created new custom rule, it showed under custom rules
  only until restart, then it was moved into EasyList
This commit is contained in:
nowrep 2011-12-29 21:25:49 +01:00
parent 93e7c073d4
commit 47b6af18b5

View File

@ -138,7 +138,7 @@ void AdBlockSubscription::rulesDownloaded()
foreach(const AdBlockRule & rule, allRules()) {
if (rule.filter().contains("*******- user custom filters")) {
customRules = true;
response.append("! *******- user custom filters -*************\n");
response.append("\n! *******- user custom filters -*************\n");
continue;
}
if (!customRules) {
@ -147,6 +147,10 @@ void AdBlockSubscription::rulesDownloaded()
response.append(rule.filter() + "\n");
}
if (!customRules) {
response.append("\n! *******- user custom filters -*************\n");
}
file.write(response);
file.close();
loadRules();