Author: andar
Revision: 5406
Log:
Apply last fix to 1.1.0_RC
Diff:
Modified: branches/1.1.0_RC/deluge/ui/gtkui/files_tab.py
===================================================================
--- branches/1.1.0_RC/deluge/ui/gtkui/files_tab.py 2009-06-23 17:36:01 UTC
(rev 5405)
+++ branches/1.1.0_RC/deluge/ui/gtkui/files_tab.py 2009-06-23 17:50:21 UTC
(rev 5406)
@@ -555,6 +555,10 @@
def _on_torrent_file_renamed_signal(self, torrent_id, index, name):
log.debug("index: %s name: %s", index, name)
+
+ if torrent_id not in self.files_list:
+ return
+
old_name = self.files_list[torrent_id][index]["path"]
self.files_list[torrent_id][index]["path"] = name
@@ -703,6 +707,9 @@
log.debug("on_torrent_folder_renamed_signal")
log.debug("old_folder: %s new_folder: %s", old_folder, new_folder)
+ if torrent_id not in self.files_list:
+ return
+
if old_folder[-1] != "/":
old_folder += "/"
if new_folder[-1] != "/":
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---