1
0
Fork 0
forked from blue/squawk

feat: copy pasted image file to download folder after successful upload

This commit is contained in:
shunf4 2021-10-16 00:20:31 +08:00
parent 52551c1ce0
commit 39f2f3d975
6 changed files with 34 additions and 5 deletions

View file

@ -249,6 +249,10 @@ void Conversation::onImagePasted()
tempFile->close();
qDebug() << "image on paste temp file: " << tempFile->fileName();
addAttachedFile(tempFile->fileName());
// The file, if successfully uploaded, will be copied to Download folder.
// On application closing, this temporary file will be automatically removed by Qt.
// See Core::NetworkAccess::onUploadFinished.
}
void Conversation::onAttach()