https://bugs.kde.org/show_bug.cgi?id=381929

Laurent Montel <mon...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Version Fixed In|                            |5.7.3
      Latest Commit|                            |https://commits.kde.org/akr
                   |                            |egator/6678efb711e2cc6ee852
                   |                            |e7331ff5185ddeba872d
             Status|CONFIRMED                   |RESOLVED

--- Comment #32 from Laurent Montel <mon...@kde.org> ---
Git commit 6678efb711e2cc6ee852e7331ff5185ddeba872d by Laurent Montel.
Committed on 26/02/2018 at 05:47.
Pushed by mlaurent into branch 'Applications/17.12'.

Apply patch from mgannon

Prevent Akregator from overwriting feeds.opml with an emtpy feed list
FIXED-IN: 5.7.3

Quitting akregator causes ~/.local/share/akregator/data/feeds.opml to be
overwritten using an empty feed
list with the result that upon relaunching an error message appears and only
the standard built in feeds are available.

In troubleshooting the issue, I noticed that slotSaveFeedList() is called five
times between quitting the
program and the program is finally shutdown. It is only the last time that the
function is called with
an empty list. This implies that there might be an error in the slot logic,
since
the function should only need to be called once. The attached patch seemed the
easiest way to deal with the issue.

Test Plan

i. Start a clean installation of akregator.
ii. Import a list of feeds from an opml file.
iii. Logout from the kde desktop
iv. Login into the kde desktop.

Without the patch, an error message appears saying it is unable to open the
file.

Differential Revision: https://phabricator.kde.org/D10466

M  +4    -0    src/akregator_part.cpp

https://commits.kde.org/akregator/6678efb711e2cc6ee852e7331ff5185ddeba872d

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to