Author: andar

Revision: 5092

Log:
        Show a Paused state when a Checking torrent is paused

Diff:
Modified: trunk/deluge/core/torrent.py
===================================================================
--- trunk/deluge/core/torrent.py        2009-04-19 19:50:12 UTC (rev 5091)
+++ trunk/deluge/core/torrent.py        2009-04-19 19:50:39 UTC (rev 5092)
@@ -362,7 +362,10 @@
             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"



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to