Fix open folder

This commit is contained in:
Andrew Resch 2008-07-16 20:03:23 +00:00
parent fe66f0f890
commit 310b428b78
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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")