Use a proper error icon for seeding torrents whose files have been removed from hard drive (manually)

This commit is contained in:
Christophe Dumez
2010-07-25 15:08:54 +00:00
parent aa58636832
commit f3066b07b5
2 changed files with 7 additions and 4 deletions

View File

@@ -2286,8 +2286,8 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
const QString hash = h.hash();
// Mismatching file size (files were probably moved
addConsoleMessage(tr("File sizes mismatch for torrent %1, pausing it.").arg(h.name()));
pauseTorrent(hash);
TorrentPersistentData::setErrorState(hash, true);
pauseTorrent(hash);
} else {
addConsoleMessage(tr("Fast resume data was rejected for torrent %1, checking again...").arg(h.name()), QString::fromUtf8("red"));
addConsoleMessage(tr("Reason: %1").arg(misc::toQString(p->message())));