Mercurial > pidgin
diff src/ft.c @ 13594:893ef02b6e28
[gaim-migrate @ 15980]
Use a helper function to make something slightly more clear
and add two comments
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 07 Apr 2006 05:14:16 +0000 |
parents | d0f7f698b6de |
children | 41e40b323dc3 |
line wrap: on
line diff
--- a/src/ft.c Fri Apr 07 05:12:51 2006 +0000 +++ b/src/ft.c Fri Apr 07 05:14:16 2006 +0000 @@ -431,6 +431,7 @@ buddy = gaim_find_buddy(account, xfer->who); if (type == GAIM_XFER_SEND) { + /* Sending a file */ /* Check the filename. */ #ifdef _WIN32 if (g_strrstr(filename, "../") || g_strrstr(filename, "..\\")) { @@ -468,6 +469,7 @@ g_free(msg); } else { + /* Receiving a file */ xfer->status = GAIM_XFER_STATUS_ACCEPTED; gaim_xfer_set_local_filename(xfer, filename); @@ -970,7 +972,7 @@ g_return_if_fail(xfer != NULL); /* See if we are actually trying to cancel this. */ - if (gaim_xfer_get_status(xfer) != GAIM_XFER_STATUS_DONE) { + if (!gaim_xfer_is_completed(xfer)) { gaim_xfer_cancel_local(xfer); return; }