diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 456e1f9e8..77eda5ffe 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -194,12 +194,10 @@ class FileTransfersWindow: gtkgui_helpers.escape_for_pango_markup(file_path) dialog = dialogs.HigDialog(None, gtk.MESSAGE_INFO, gtk.BUTTONS_NONE, _('File transfer completed'), sectext) - #FIXME: add folder icon to Open Containgin Folder button - dialog.add_buttons(_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT, - gtk.STOCK_OK, gtk.RESPONSE_OK ) + if file_props['type'] == 'r': + dialog.add_buttons(_('_Open Containing Folder'), gtk.RESPONSE_ACCEPT) + dialog.add_buttons(gtk.STOCK_OK, gtk.RESPONSE_OK) dialog.show_all() - if file_props['type'] == 's': - button.hide() response = dialog.run() dialog.destroy() if response == gtk.RESPONSE_ACCEPT: