mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
fix for old torrents
This commit is contained in:
parent
fae29ee8be
commit
d2761b1603
1 changed files with 13 additions and 10 deletions
|
@ -77,6 +77,7 @@ class DesiredSpeed:
|
||||||
self.up_speed_menuitem.show_all()
|
self.up_speed_menuitem.show_all()
|
||||||
for torrent in self.core.get_queue():
|
for torrent in self.core.get_queue():
|
||||||
unique_ID = self.core.get_torrent_unique_id(torrent)
|
unique_ID = self.core.get_torrent_unique_id(torrent)
|
||||||
|
try:
|
||||||
if self.core.unique_IDs[unique_ID].upload_rate_limit != -1:
|
if self.core.unique_IDs[unique_ID].upload_rate_limit != -1:
|
||||||
self.core.set_per_upload_rate_limit(unique_ID,
|
self.core.set_per_upload_rate_limit(unique_ID,
|
||||||
self.core.unique_IDs[unique_ID].upload_rate_limit)
|
self.core.unique_IDs[unique_ID].upload_rate_limit)
|
||||||
|
@ -87,6 +88,8 @@ class DesiredSpeed:
|
||||||
self.core.unique_IDs[unique_ID].download_rate_limit)
|
self.core.unique_IDs[unique_ID].download_rate_limit)
|
||||||
self.set_down_speeds[unique_ID] = \
|
self.set_down_speeds[unique_ID] = \
|
||||||
self.core.unique_IDs[unique_ID].download_rate_limit / 1024
|
self.core.unique_IDs[unique_ID].download_rate_limit / 1024
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
def torrent_menu_hide(self, widget):
|
def torrent_menu_hide(self, widget):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue