fix:修正下载时误判本地已存在的BUG。

This commit is contained in:
2025-11-08 22:16:07 +08:00
parent d209d64061
commit 089d542a8d
2 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ void ClientCore::handleAsk(QSharedPointer<FrameBuffer> frame)
continue; continue;
} }
} else { } else {
if (!Util::FileExist(item.localPath)) { if (!Util::FileExist(item.remotePath)) {
item.state = static_cast<qint32>(FCS_FILE_NOT_EXIST); item.state = static_cast<qint32>(FCS_FILE_NOT_EXIST);
} }
} }

View File

@@ -9,7 +9,7 @@ TransForm::TransForm(QWidget* parent) : QDialog(parent), ui(new Ui::TransForm)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowTitle(tr("TransProgress")); setWindowTitle(tr("传输详情"));
ui->edFrom->setReadOnly(true); ui->edFrom->setReadOnly(true);
ui->edTo->setReadOnly(true); ui->edTo->setReadOnly(true);
ui->pedFrom->setReadOnly(true); ui->pedFrom->setReadOnly(true);
@@ -213,7 +213,7 @@ void CheckCondition::run()
if (!task.isUpload) { if (!task.isUpload) {
if (!Util::DirExist(task.localPath, false)) { if (!Util::DirExist(task.localPath, false)) {
task.localCheckState = FCS_DIR_NOT_EXIST; task.localCheckState = FCS_DIR_NOT_EXIST;
} else if (Util::FileExist(task.localPath)) { } else if (Util::FileExist(Util::Get2FilePath(task.remotePath, task.localPath))) {
task.localCheckState = FCS_FILE_EXIST; task.localCheckState = FCS_FILE_EXIST;
} }
} }