mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fix in rss refresh and mark all as read
This commit is contained in:
parent
c4d143c2c0
commit
b99b838827
2 changed files with 5 additions and 5 deletions
|
@ -131,10 +131,6 @@ class RssStream : public QObject{
|
|||
public slots :
|
||||
// read and store the downloaded rss' informations
|
||||
void processDownloadedFile(QString file_path) {
|
||||
// delete the old file
|
||||
if(QFile::exists(filePath)) {
|
||||
QFile::remove(filePath);
|
||||
}
|
||||
filePath = file_path;
|
||||
downloadFailure = false;
|
||||
openRss();
|
||||
|
@ -357,7 +353,7 @@ class RssStream : public QObject{
|
|||
if(!fileRss.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
qDebug("openRss error : open failed, no file or locked, "+filePath.toUtf8());
|
||||
if(QFile::exists(filePath)) {
|
||||
fileRss.remove();
|
||||
fileRss.remove();
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue