mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 14:26:24 +00:00
[GTKUI] Fix unselect error with treeview selection returning None
In standalone mode treeview.get_selection returns None resulting in an AttributeError for call to unselect_all.
This commit is contained in:
parent
fc9bc2976f
commit
c62c604418
@ -349,6 +349,7 @@ class TorrentView(ListView, component.Component):
|
||||
def stop(self):
|
||||
"""Stops the torrentview"""
|
||||
# We need to clear the liststore
|
||||
if self.treeview.get_selection():
|
||||
self.treeview.get_selection().unselect_all()
|
||||
self.liststore.clear()
|
||||
self.prev_status = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user