Mercurial > pidgin.yaz
changeset 30093:c726b1461159
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
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 06 Apr 2010 09:26:30 +0000 |
parents | 1d657e98667b |
children | 6797736dbe37 |
files | libpurple/protocols/oscar/oft.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oft.c Tue Apr 06 08:18:47 2010 +0000 +++ b/libpurple/protocols/oscar/oft.c Tue Apr 06 09:26:30 2010 +0000 @@ -503,7 +503,8 @@ * 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;