changeset 27725:36d5e7690ad6

ft: Don't emit a changed-status signal for something that isn't a change. Pointed out by kenshin in #pidgin.
author Paul Aurich <paul@darkrain42.org>
date Tue, 28 Jul 2009 21:49:29 +0000
parents 06ec6e21da89
children 769463505b5c
files libpurple/ft.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/ft.c	Tue Jul 28 05:03:19 2009 +0000
+++ b/libpurple/ft.c	Tue Jul 28 21:49:29 2009 +0000
@@ -132,6 +132,9 @@
 {
 	g_return_if_fail(xfer != NULL);
 
+	if (xfer->status == status)
+		return;
+
 	xfer->status = status;
 
 	if(xfer->type == PURPLE_XFER_SEND) {