mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +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):
|
def start_pause(self, widget):
|
||||||
print "Pause btn clicked"
|
print "Pause btn clicked"
|
||||||
unique_id = self.get_selected_torrent()
|
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):
|
def build_summary_tab(self):
|
||||||
#Torrent Summary tab
|
#Torrent Summary tab
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue