From e20824e6e6ebfec96d2e08db39715ca28884665c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 10 Apr 2006 21:15:49 +0000 Subject: [PATCH] typo --- src/filetransfers_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 40acc23d8..c8aaf409f 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -332,6 +332,7 @@ _('Connection with peer cannot be established.')) if file_props.has_key('desc'): sec_text += '\n\t' + _('Description: %s') % file_props['desc'] prim_text = _('%s wants to send you a file:') % contact.jid + def on_response_ok(widget, account, contact, file_props): self.dialog.destroy() @@ -339,8 +340,8 @@ _('Connection with peer cannot be established.')) file_path = self.dialog2.get_filename() file_path = gtkgui_helpers.decode_filechooser_file_paths( (file_path,))[0] - if gtk.gtk_version < (2, 8, 0) or gtk.pygtk_version < (2, 8, 0) and\ - os.path.exists(file_path): + if (gtk.gtk_version < (2, 8, 0) or gtk.pygtk_version < (2, 8, 0)) \ + and os.path.exists(file_path): primtext = _('This file already exists') sectext = _('Would you like to overwrite it?') dialog3 = dialogs.ConfirmationDialog(primtext, sectext) @@ -362,6 +363,7 @@ _('Connection with peer cannot be established.')) current_folder = gajim.config.get('last_save_dir'), on_response_ok = (on_ok, account, contact, file_props), on_response_cancel = (on_cancel, account, contact, file_props)) + self.dialog2.set_current_name(file_props['name']) if gtk.gtk_version >= (2, 8, 0) and gtk.pygtk_version >= (2, 8, 0): self.dialog2.props.do_overwrite_confirmation = True