Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit be2e169f authored by Jonathan Marten's avatar Jonathan Marten

When backing up feeds.opml, remove any existing backup first

Otherwise QFile::copy() will not overwrite it and no backup will be

Differential Revision:
parent 09d1a28c
......@@ -520,6 +520,9 @@ void Part::slotSaveFeedList()
// the first time we overwrite the feed list, we create a backup
if (!m_backedUpList) {
const QString backup = localFilePath() + QLatin1Char('~');
if (QFile::exists(backup)) {
if (QFile::copy(localFilePath(), backup)) {
m_backedUpList = true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment