From ab7f19fbb8d7b84e8feb62d60d4c3d116ceee442 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 7 Nov 2018 18:04:50 +0000 Subject: [PATCH] [GTK] Fix no torrent selected on startup --- deluge/ui/gtk3/torrentview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/gtk3/torrentview.py b/deluge/ui/gtk3/torrentview.py index cad5286e5..9d6bf6864 100644 --- a/deluge/ui/gtk3/torrentview.py +++ b/deluge/ui/gtk3/torrentview.py @@ -717,7 +717,7 @@ class TorrentView(ListView, component.Component): if row[self.columns['torrent_id'].column_indices[0]] == torrent_id: self.liststore.remove(row.iter) # Force an update of the torrentview - self.update() + self.update(select_row=True) break def mark_dirty(self, torrent_id=None): @@ -835,7 +835,7 @@ class TorrentView(ListView, component.Component): def on_torrentadded_event(self, torrent_id, from_state): self.add_rows([torrent_id]) - self.update() + self.update(select_row=True) def on_torrentremoved_event(self, torrent_id): self.remove_row(torrent_id) @@ -873,7 +873,7 @@ class TorrentView(ListView, component.Component): def on_sessionresumed_event(self): self.mark_dirty() - self.update() + self.update(select_row=True) def on_torrentqueuechanged_event(self): self.mark_dirty()