mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #231 clear torrent info if no torrent selected.
This commit is contained in:
parent
9d40380f71
commit
6b008d6c4d
1 changed files with 4 additions and 0 deletions
|
@ -231,6 +231,10 @@ class TorrentDetails(component.Component):
|
||||||
self.save_state()
|
self.save_state()
|
||||||
|
|
||||||
def update(self, page_num=None):
|
def update(self, page_num=None):
|
||||||
|
if len(component.get("TorrentView").get_selected_torrents()) == 0:
|
||||||
|
# No torrents selected, so just clear
|
||||||
|
self.clear()
|
||||||
|
|
||||||
if self.notebook.get_property("visible"):
|
if self.notebook.get_property("visible"):
|
||||||
if page_num == None:
|
if page_num == None:
|
||||||
page_num = self.notebook.get_current_page()
|
page_num = self.notebook.get_current_page()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue