<table><tr><td style="">marten created this revision.<br />marten added a reviewer: KDE PIM.<br />Restricted Application added a project: KDE PIM.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7933" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>According to the comments, Part::slotSaveFeedList() is intended to back up the feeds.opml file the first time that it is to be overwritten.  This is a bit ambiguous, but according to the code and the use of the m_backedUpList flag it should happen the first time the file is saved in a run of the Akregator application.  However, this never happens because QFile::copy() will not overwrite an existing file.</p>

<p>The effect of that is that the file will be backed up the first time that Akregator is ever run by a new user, and no backup will then be taken ever again.  Evan that backup is not very useful as it will be a copy of the default feed list.</p>

<p>This change removes the destination file before the backup copy is taken.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Built akregator with this change.  Verified (by checking file times) that a backup of feeds.opml is taken five minutes after Akregator is started and that a new backup is taken for each run.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R201 Akregator</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7933" rel="noreferrer">https://phabricator.kde.org/D7933</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/akregator_part.cpp</div></div></div><br /><div><strong>To: </strong>marten, KDE PIM<br /><strong>Cc: </strong>dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>