diff --git a/ClientCore/FileTrans.cpp b/ClientCore/FileTrans.cpp index 7d76f90..28d3cd6 100644 --- a/ClientCore/FileTrans.cpp +++ b/ClientCore/FileTrans.cpp @@ -332,6 +332,7 @@ void FileTrans::fbtCanotSend(QSharedPointer frame) if (sendTask_->file.isOpen()) { sendTask_->file.close(); } + sendTask_->state = TaskState::STATE_FAILED; } void FileTrans::fbtCanSend(QSharedPointer frame) diff --git a/Gui/Form/Transform.cpp b/Gui/Form/Transform.cpp index e5e645c..239630f 100644 --- a/Gui/Form/Transform.cpp +++ b/Gui/Form/Transform.cpp @@ -110,6 +110,7 @@ void TransForm::setProgress(double val) void TransForm::handleFailed() { ui->progressBar->setValue(0); + QMessageBox::information(this, tr("提示"), tr("传输失败")); } void TransForm::handleDone()