From 3fb919b99dc5727304f78ae915dbbfbe9830e68a Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 25 Dec 2007 03:02:07 +0000 Subject: [PATCH] fix oops in notification --- plugins/TorrentNotification/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/TorrentNotification/__init__.py b/plugins/TorrentNotification/__init__.py index 117f3c60d..305a4ae4d 100644 --- a/plugins/TorrentNotification/__init__.py +++ b/plugins/TorrentNotification/__init__.py @@ -103,9 +103,9 @@ class TorrentNotification: except: pass else: - file_info = self.interface.manager.get_torrent_file_info(event['unique_ID']) + state = self.interface.manager.get_torrent_state(event['unique_ID']) if pynotify.init("Deluge"): - n = pynotify.Notification(_("Torrent complete")) + n = pynotify.Notification(_("Torrent complete"), state['name']) n.set_icon_from_pixbuf(deluge.common.get_logo(48)) n.show() else: