1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01: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()) { foreach(const AdBlockRule & rule, allRules()) {
if (rule.filter().contains("*******- user custom filters")) { if (rule.filter().contains("*******- user custom filters")) {
customRules = true; customRules = true;
response.append("! *******- user custom filters -*************\n"); response.append("\n! *******- user custom filters -*************\n");
continue; continue;
} }
if (!customRules) { if (!customRules) {
@ -147,6 +147,10 @@ void AdBlockSubscription::rulesDownloaded()
response.append(rule.filter() + "\n"); response.append(rule.filter() + "\n");
} }
if (!customRules) {
response.append("\n! *******- user custom filters -*************\n");
}
file.write(response); file.write(response);
file.close(); file.close();
loadRules(); loadRules();