finch/gntft.c

changeset 22173
17e1cda09faf
parent 22172
0a40939c573b
child 22338
d6a489105624
--- 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"));
 	}

mercurial