mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Delete temporary after they aren't needed. Closes #1188.
This commit is contained in:
parent
ecfd06cfe9
commit
423d60cced
6 changed files with 12 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue