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

@@ -9,7 +9,7 @@ TransForm::TransForm(QWidget* parent) : QDialog(parent), ui(new Ui::TransForm)
{
ui->setupUi(this);
setWindowTitle(tr("TransProgress"));
setWindowTitle(tr("传输详情"));
ui->edFrom->setReadOnly(true);
ui->edTo->setReadOnly(true);
ui->pedFrom->setReadOnly(true);
@@ -213,7 +213,7 @@ void CheckCondition::run()
if (!task.isUpload) {
if (!Util::DirExist(task.localPath, false)) {
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;
}
}