pidgin: 713df928: ft: Don't emit a changed-status signal f...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Tue Jul 28 18:10:43 EDT 2009


-----------------------------------------------------------------
Revision: 713df92802bf12679e55655dd336fbad02a87556
Ancestor: 3f513b0104cd70be9b4b8bd82a89a65e750676a2
Author: darkrain42 at pidgin.im
Date: 2009-07-28T21:49:29
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/713df92802bf12679e55655dd336fbad02a87556

Modified files:
        libpurple/ft.c

ChangeLog: 

ft: Don't emit a changed-status signal for something that isn't a change.

Pointed out by kenshin in #pidgin.

-------------- next part --------------
============================================================
--- libpurple/ft.c	0dfe9b4234cfce2f99209fcb87b839fede2a1953
+++ libpurple/ft.c	811705de6d0cca1eb7fd100768ddbc62652f7554
@@ -132,6 +132,9 @@ purple_xfer_set_status(PurpleXfer *xfer,
 {
 	g_return_if_fail(xfer != NULL);
 
+	if (xfer->status == status)
+		return;
+
 	xfer->status = status;
 
 	if(xfer->type == PURPLE_XFER_SEND) {


More information about the Commits mailing list