won;t crash if trying to pause with no torrents
This commit is contained in:
parent
f94eaa7b91
commit
230f2d151b
@ -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()
|
||||||
|
try:
|
||||||
self.manager.set_user_pause(unique_id, not self.manager.is_user_paused(unique_id))
|
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…
x
Reference in New Issue
Block a user