summaryrefslogtreecommitdiff
path: root/libpurple/protocols
diff options
context:
space:
mode:
authorMark Doliner <markdoliner@pidgin.im>2010-04-06 09:26:30 +0000
committerMark Doliner <markdoliner@pidgin.im>2010-04-06 09:26:30 +0000
commit82fcd901b527d52b4e357ea71f7a078feabdc401 (patch)
tree7ae12ecec7ab7b0d74659256e816403c664f84f3 /libpurple/protocols
parent77378821b65bc11678e58a865c2b74f38a1fbcb2 (diff)
downloadpidgin-82fcd901b527d52b4e357ea71f7a078feabdc401.tar.gz
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
Diffstat (limited to 'libpurple/protocols')
-rw-r--r--libpurple/protocols/oscar/oft.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpurple/protocols/oscar/oft.c b/libpurple/protocols/oscar/oft.c
index 4cc68ae0bf..47891cebca 100644
--- a/libpurple/protocols/oscar/oft.c
+++ b/libpurple/protocols/oscar/oft.c
@@ -503,7 +503,8 @@ peer_oft_recv_frame_done(PeerConnection *conn, OftFrame *frame)
* 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;