D6980: Create ~/.local/share/adblock/ if it doesn't exist
Wolfgang Bauer
noreply at phabricator.kde.org
Sat Jul 29 23:10:12 BST 2017
wbauer created this revision.
wbauer added a project: KDE PIM.
REVISION SUMMARY
Otherwise saving manual filters will fail, which will also result in the general settings (Enable Ad Block, Hide filtered elements, Update interval) not getting written at all.
TEST PLAN
Run Akregator or KMail on a fresh user account or delete ~/.local/share/adblock/ before you run it.
Enable the options "Enable Ad Block" and/or "Hide filtered elements" in the Adblock plugin settings (or disable them if they are already on) and click OK.
Quit and restart Akregator/KMail.
The settings are remembered now, before they were reverted again.
Also, adding custom manual filter rules works now and they are remembered.
Debug message "Unable to open rule file /home/xxx/.local/share/adblock/adblockrules_local" disappears too with the patch.
REPOSITORY
R81 KDE PIM Addons
REVISION DETAIL
https://phabricator.kde.org/D6980
AFFECTED FILES
plugins/webengineurlinterceptor/adblock/lib/widgets/adblocksettingwidget.cpp
To: wbauer, mlaurent
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170729/873cb651/attachment.html>
More information about the kde-pim
mailing list