1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
tux3 2015-05-12 18:39:38 +02:00
parent 76cbaf18f1
commit 15cc64069f
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -320,7 +320,10 @@ void CoreFile::onFileDataCallback(Tox *tox, uint32_t friendId, uint32_t fileId,
{
//qDebug("onFileDataCallback: File sending completed");
if (file->fileKind != TOX_FILE_KIND_AVATAR)
{
emit static_cast<Core*>(core)->fileTransferFinished(*file);
emit static_cast<Core*>(core)->fileUploadFinished(file->filePath);
}
removeFile(friendId, fileId);
return;
}
@ -401,6 +404,7 @@ void CoreFile::onFileRecvChunkCallback(Tox *tox, uint32_t friendId, uint32_t fil
else
{
emit static_cast<Core*>(core)->fileTransferFinished(*file);
emit static_cast<Core*>(core)->fileDownloadFinished(file->filePath);
}
removeFile(friendId, fileId);
return;