From 310b428b783df30ad3f24f65adae41e54555611e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 16 Jul 2008 20:03:23 +0000 Subject: [PATCH] Fix open folder --- ChangeLog | 3 +++ deluge/ui/gtkui/menubar.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7bb66f320..2fb444743 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ Deluge 0.9.03 - "1.0.0_RC3" (In-Development) UI: * Default to gtkui when running 'deluge' instead of defaulting to last used. + GtkUI: + * Fix open folder + Misc: * Some changes for python 2.6 compatibility diff --git a/deluge/ui/gtkui/menubar.py b/deluge/ui/gtkui/menubar.py index fb65102a7..68b2a8043 100644 --- a/deluge/ui/gtkui/menubar.py +++ b/deluge/ui/gtkui/menubar.py @@ -308,6 +308,10 @@ class MenuBar(component.Component): def on_menuitem_open_folder_activate(self, data=None): log.debug("on_menuitem_open_folder") + def _on_torrent_status(status): + deluge.common.open_file(status["save_path"]) + for torrent_id in component.get("TorrentView").get_selected_torrents(): + client.get_torrent_status(_on_torrent_status, torrent_id, ["save_path"]) def on_menuitem_move_activate(self, data=None): log.debug("on_menuitem_move_activate")