im.pidgin.pidgin: 3ab2ccec72324b65dee436800ef9375157c55c20
sadrul at pidgin.im
sadrul at pidgin.im
Wed Jan 9 09:40:47 EST 2008
-----------------------------------------------------------------
Revision: 3ab2ccec72324b65dee436800ef9375157c55c20
Ancestor: 752ed735536991596dbe65043e784537f38a78c0
Author: sadrul at pidgin.im
Date: 2008-01-09T14:41:29
Branch: im.pidgin.pidgin
Modified files:
finch/gntft.c
ChangeLog:
Don't print 'file transfer complete' message more than once for the same xfer.
-------------- next part --------------
============================================================
--- finch/gntft.c b645f863e49eae1d215dba04bb1b387d0569ab2b
+++ finch/gntft.c 70cec96e99fe94259adc318b068f5976d4584f1f
@@ -65,6 +65,7 @@ typedef struct
gboolean in_list;
char *name;
+ gboolean notified; /* Has the completion of the transfer been notified? */
} PurpleGntXferUiData;
@@ -412,7 +413,7 @@ finch_xfer_dialog_update_xfer(PurpleXfer
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 @@ finch_xfer_dialog_update_xfer(PurpleXfer
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"));
}
More information about the Commits
mailing list