mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Delete temporary after they aren't needed. Closes #1188.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "rssparser.h"
|
||||
#include "downloadthread.h"
|
||||
#include "fs_utils.h"
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
#include <QRegExp>
|
||||
@@ -496,12 +497,13 @@ void RssParser::parseFeed(const ParsingJob& job)
|
||||
}
|
||||
|
||||
// Clean up
|
||||
QFile::remove(job.filePath);
|
||||
fileRss.close();
|
||||
emit feedParsingFinished(job.feedUrl, QString());
|
||||
fsutils::forceRemove(job.filePath);
|
||||
}
|
||||
|
||||
void RssParser::reportFailure(const ParsingJob& job, const QString& error)
|
||||
{
|
||||
QFile::remove(job.filePath);
|
||||
emit feedParsingFinished(job.feedUrl, error);
|
||||
fsutils::forceRemove(job.filePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user