pidgin: b9e0791c: A revision to my previous commit.

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Apr 6 05:36:04 EDT 2010


-----------------------------------------------------------------
Revision: b9e0791c0283b12619fd4f4bd45400dff5498b87
Ancestor: 6ef47607acf2deca68a194f9a43e42729b07a273
Author: markdoliner at pidgin.im
Date: 2010-04-06T09:26:30
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b9e0791c0283b12619fd4f4bd45400dff5498b87

Modified files:
        libpurple/protocols/oscar/oft.c

ChangeLog: 

A revision to my previous commit.
Only set the xfer to completed if it isn't already completed.  To avoid
showing duplicate "File transferred successfully" messages

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oft.c	1db020882cc23be21e41f276ee91551c41dd3305
+++ libpurple/protocols/oscar/oft.c	6ac400acf41f739c97b45a700fd1e74eb592ba44
@@ -503,7 +503,8 @@ peer_oft_recv_frame_done(PeerConnection 
 	 * where the user already has this file on their computer and the
 	 * checksum matches).
 	 */
-	purple_xfer_set_completed(conn->xfer, TRUE);
+	if (!purple_xfer_is_completed(conn->xfer))
+		purple_xfer_set_completed(conn->xfer, TRUE);
 
 	purple_input_remove(conn->watcher_incoming);
 	conn->watcher_incoming = 0;


More information about the Commits mailing list