Commit fd591e35 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 1bf6aa9f
......@@ -519,6 +519,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