From 6c9dd4d5c9d8e8d846f69c03a03dc34ad4c25818 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 19 Apr 2009 19:50:39 +0000 Subject: [PATCH] Show a Paused state when a Checking torrent is paused --- deluge/core/torrent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 88c5cf182..6c368417f 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -362,7 +362,10 @@ class Torrent: return if ltstate == LTSTATE["Queued"] or ltstate == LTSTATE["Checking"]: - self.state = "Checking" + if self.handle.is_paused(): + self.state = "Paused" + else: + self.state = "Checking" return elif ltstate == LTSTATE["Downloading"] or ltstate == LTSTATE["Downloading Metadata"]: self.state = "Downloading"