From 47b6af18b586dfd5ed40656330761670df260d1e Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 29 Dec 2011 21:25:49 +0100 Subject: [PATCH] [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 --- src/adblock/adblocksubscription.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/adblock/adblocksubscription.cpp b/src/adblock/adblocksubscription.cpp index 618d412b5..6e9b2c87a 100644 --- a/src/adblock/adblocksubscription.cpp +++ b/src/adblock/adblocksubscription.cpp @@ -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();