Do not mark articles read if download has failed

This change includes: always try to download unread articles matching ruleset already present in list (aka redownload failed items)
This commit is contained in:
Nick Tiskov
2013-07-09 17:33:00 +04:00
parent 050aadd3fa
commit b6c59fd70b
6 changed files with 65 additions and 35 deletions

View File

@@ -2725,6 +2725,7 @@ void QBtSession::processDownloadedFile(QString url, QString file_path) {
// Pause torrent if necessary
if (h.is_valid() && pref.addTorrentsInPause() && Preferences().useAdditionDialog())
h.pause();
emit newDownloadedTorrentFromRss(url);
}
}

View File

@@ -212,6 +212,7 @@ signals:
void trackerError(const QString &hash, QString time, QString msg);
void trackerAuthenticationRequired(const QTorrentHandle& h);
void newDownloadedTorrent(QString path, QString url);
void newDownloadedTorrentFromRss(QString url);
void newMagnetLink(const QString& link);
void updateFileSize(const QString &hash);
void downloadFromUrlFailure(QString url, QString reason);