From 55ff924e60e254764adf0163dea4253b4efedb16 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 7 Sep 2009 12:10:47 +0000 Subject: [PATCH] - Pause torrents in error state --- src/GUI.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 821268077..5f9a0321b 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -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