diff options
author | Calum Lind <calumlind@gmail.com> | 2018-11-07 18:04:50 +0000 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2018-11-09 10:41:08 +0000 |
commit | ab7f19fbb8d7b84e8feb62d60d4c3d116ceee442 (patch) | |
tree | 02d0f2bbfb52fff991011b5308134f25925c5f44 | |
parent | b665a4a6f7a84e1d4901d566128e7d06b7541825 (diff) | |
download | deluge-ab7f19fbb8d7b84e8feb62d60d4c3d116ceee442.tar.gz deluge-ab7f19fbb8d7b84e8feb62d60d4c3d116ceee442.tar.bz2 deluge-ab7f19fbb8d7b84e8feb62d60d4c3d116ceee442.zip |
[GTK] Fix no torrent selected on startup
-rw-r--r-- | deluge/ui/gtk3/torrentview.py | 6 |
1 files 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() |