From d6009f0e8ef38aa07af3c9d6e3b504136655c464 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sat, 3 Jun 2023 17:49:37 +0800 Subject: [PATCH] fix: new release check ,download url is incorrect fix #718 --- src/ui/mainwindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index c7f1747b..ce4faca1 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -2965,7 +2965,7 @@ void MainWindow::latestReleaseReplyReady() } downloadUrl = matchParts.captured(1); if(downloadUrl.startsWith("/")){ - downloadUrl = latestReleaseReply->request().url().host() + downloadUrl; + downloadUrl = latestReleaseReply->request().url().url( QUrl::RemovePath ) + downloadUrl; } success = true; }