- Pause torrents in error state

This commit is contained in:
Christophe Dumez
2009-09-07 12:14:20 +00:00
parent c863ff6335
commit ab13a58614
52 changed files with 1858 additions and 1885 deletions

View File

@@ -450,7 +450,10 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
}
void GUI::setPaused(QTorrentHandle &h) const {
if(!h.is_paused()) return;
if(!h.is_paused()) {
// FIXME in v1.6.0: Add Error state and stop using pause for this
h.pause();
}
qDebug("Marking torrent %s as paused", h.hash().toLocal8Bit().data());
if(h.is_seed()) {
// In finished list