mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
won;t crash if trying to pause with no torrents
This commit is contained in:
parent
f94eaa7b91
commit
230f2d151b
1 changed files with 4 additions and 1 deletions
|
@ -392,7 +392,10 @@ class DelugeGTK:
|
|||
def start_pause(self, widget):
|
||||
print "Pause btn clicked"
|
||||
unique_id = self.get_selected_torrent()
|
||||
self.manager.set_user_pause(unique_id, not self.manager.is_user_paused(unique_id))
|
||||
try:
|
||||
self.manager.set_user_pause(unique_id, not self.manager.is_user_paused(unique_id))
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
def build_summary_tab(self):
|
||||
#Torrent Summary tab
|
||||
|
|
Loading…
Add table
Reference in a new issue