From 69a1f5f2101f623c10ae28241a77c7f2952028ad Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 28 Oct 2015 12:51:25 +0000 Subject: [PATCH] [GTKUI] Don't display percentage for Error'd torrents --- deluge/ui/gtkui/torrentview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 7c68cbc9f..7605279cc 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -157,7 +157,7 @@ def cell_data_progress(column, cell, model, row, data): cell.set_property("value", value) textstr = _t(state_str) - if state_str != "Seeding" and value < 100: + if state_str not in ("Error", "Seeding") and value < 100: textstr = "%s %.2f%%" % (textstr, value) if cell.get_property("text") != textstr: cell.set_property("text", textstr)