From 3a03bb8dd77fd01f607c39cd11046f9232438de7 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_data_funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/torrentview_data_funcs.py b/deluge/ui/gtkui/torrentview_data_funcs.py index 9a0361c1d..d511ccbed 100644 --- a/deluge/ui/gtkui/torrentview_data_funcs.py +++ b/deluge/ui/gtkui/torrentview_data_funcs.py @@ -138,7 +138,7 @@ def cell_data_progress(column, cell, model, row, data): # Marked for translate states text are in filtertreeview textstr = _(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 func_last_value["cell_data_progress"][1] != textstr: