mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #1634
This commit is contained in:
parent
76cbaf18f1
commit
15cc64069f
|
@ -320,7 +320,10 @@ void CoreFile::onFileDataCallback(Tox *tox, uint32_t friendId, uint32_t fileId,
|
||||||
{
|
{
|
||||||
//qDebug("onFileDataCallback: File sending completed");
|
//qDebug("onFileDataCallback: File sending completed");
|
||||||
if (file->fileKind != TOX_FILE_KIND_AVATAR)
|
if (file->fileKind != TOX_FILE_KIND_AVATAR)
|
||||||
|
{
|
||||||
emit static_cast<Core*>(core)->fileTransferFinished(*file);
|
emit static_cast<Core*>(core)->fileTransferFinished(*file);
|
||||||
|
emit static_cast<Core*>(core)->fileUploadFinished(file->filePath);
|
||||||
|
}
|
||||||
removeFile(friendId, fileId);
|
removeFile(friendId, fileId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -401,6 +404,7 @@ void CoreFile::onFileRecvChunkCallback(Tox *tox, uint32_t friendId, uint32_t fil
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
emit static_cast<Core*>(core)->fileTransferFinished(*file);
|
emit static_cast<Core*>(core)->fileTransferFinished(*file);
|
||||||
|
emit static_cast<Core*>(core)->fileDownloadFinished(file->filePath);
|
||||||
}
|
}
|
||||||
removeFile(friendId, fileId);
|
removeFile(friendId, fileId);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user