Fix progress of receiving file transfers in Adium
Set the xfer before requesting the xfer from the user, as this is the only time when Adium sets the xfer size in its controller class.
This commit is contained in:
parent
b5fb8df3b7
commit
82b36060b8
1 changed files with 4 additions and 0 deletions
4
tgp-ft.c
4
tgp-ft.c
|
@ -253,6 +253,8 @@ void tgprpl_recv_file (PurpleConnection * gc, const char *who, struct tgl_docume
|
|||
purple_xfer_set_filename (X, filename);
|
||||
g_free (filename);
|
||||
|
||||
purple_xfer_set_size (X, D->size);
|
||||
|
||||
tgprpl_xfer_init_data (X, purple_connection_get_protocol_data (gc), D, NULL);
|
||||
purple_xfer_request (X);
|
||||
}
|
||||
|
@ -266,6 +268,8 @@ void tgprpl_recv_encr_file (PurpleConnection * gc, const char *who, struct tgl_e
|
|||
purple_xfer_set_filename (X, filename);
|
||||
g_free (filename);
|
||||
|
||||
purple_xfer_set_size (X, D->size);
|
||||
|
||||
tgprpl_xfer_init_data (X, purple_connection_get_protocol_data (gc), NULL, D);
|
||||
purple_xfer_request (X);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue