summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChase Sterling <chase.sterling@gmail.com>2022-02-09 23:57:18 -0500
committerCalum Lind <calumlind+deluge@gmail.com>2022-02-11 08:31:03 +0000
commitaa74261d503dadba4263b6a92503ee6e182db7c5 (patch)
treeebc94ae287763e2ec29a0befbb6bbb5bef01212f
parentb29829f57118706932b6422e86618743aa571c44 (diff)
downloaddeluge-aa74261d503dadba4263b6a92503ee6e182db7c5.tar.gz
deluge-aa74261d503dadba4263b6a92503ee6e182db7c5.tar.bz2
deluge-aa74261d503dadba4263b6a92503ee6e182db7c5.zip
[GtkUI] Fix ETA being copied to neighboring empty cells
An optimization that avoided re-rendering treeview cells sometimes went wrong, and rendered a value from the wrong row when moving the mouse around the torrentview window. Closes: https://dev.deluge-torrent.org/ticket/3500 Closes: https://github.com/deluge-torrent/deluge/pull/371
-rw-r--r--deluge/ui/gtk3/torrentview_data_funcs.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/deluge/ui/gtk3/torrentview_data_funcs.py b/deluge/ui/gtk3/torrentview_data_funcs.py
index 13c2b6b21..0b2545d8c 100644
--- a/deluge/ui/gtk3/torrentview_data_funcs.py
+++ b/deluge/ui/gtk3/torrentview_data_funcs.py
@@ -39,7 +39,6 @@ ICON_STATE = {
# renderer. This is much cheaper than fetch the current value and test if
# it's equal.
func_last_value = {
- 'cell_data_time': None,
'cell_data_ratio_seeds_peers': None,
'cell_data_ratio_ratio': None,
'cell_data_ratio_avail': None,
@@ -219,10 +218,6 @@ def cell_data_peer(column, cell, model, row, data):
def cell_data_time(column, cell, model, row, data):
"""Display value as time, eg 1m10s"""
time = model.get_value(row, data)
- if func_last_value['cell_data_time'] == time:
- return
- func_last_value['cell_data_time'] = time
-
if time <= 0:
time_str = ''
else: