Mercurial > pidgin.yaz
changeset 22049:3f7e58ae1305
Don't print 'file transfer complete' message more than once for the same xfer.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 09 Jan 2008 14:41:29 +0000 |
parents | 6704629dc478 |
children | 2d4c3b775620 92eeb7f5b3c9 |
files | finch/gntft.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntft.c Wed Jan 09 08:42:33 2008 +0000 +++ b/finch/gntft.c Wed Jan 09 14:41:29 2008 +0000 @@ -65,6 +65,7 @@ gboolean in_list; char *name; + gboolean notified; /* Has the completion of the transfer been notified? */ } PurpleGntXferUiData; @@ -412,7 +413,7 @@ if ((data = FINCHXFER(xfer)) == NULL) return; - if (data->in_list == FALSE) + if (data->in_list == FALSE || data->notified) return; current_time = time(NULL); @@ -441,6 +442,7 @@ gnt_tree_change_text(GNT_TREE(xfer_dialog->tree), xfer, COLUMN_REMAINING, _("Finished")); purple_xfer_conversation_write(xfer, msg, FALSE); g_free(msg); + data->notified = TRUE; } else { gnt_tree_change_text(GNT_TREE(xfer_dialog->tree), xfer, COLUMN_STATUS, _("Transferring")); }