From d43a55f08742bf5aa177940feb72e4b5f781476b Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Sun, 16 Aug 2020 19:36:45 +0100 Subject: [PATCH] Fix setup wizard unable to download xswiftbus from GitHub --- src/blackgui/components/installxswiftbuscomponent.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blackgui/components/installxswiftbuscomponent.cpp b/src/blackgui/components/installxswiftbuscomponent.cpp index cfb29407a..02dba7469 100644 --- a/src/blackgui/components/installxswiftbuscomponent.cpp +++ b/src/blackgui/components/installxswiftbuscomponent.cpp @@ -102,7 +102,7 @@ namespace BlackGui void CInstallXSwiftBusComponent::installXSwiftBus() { const CRemoteFile rf = this->getRemoteFileSelected(); - const QString downloadFileName = CFileUtils::appendFilePathsAndFixUnc(this->downloadDir(), rf.getName()); + const QString downloadFileName = CFileUtils::appendFilePathsAndFixUnc(this->downloadDir(), rf.getBaseName()); QPointer myself(this); QFile downloadFile(downloadFileName); @@ -129,7 +129,7 @@ namespace BlackGui return; } - const QString destFileName = CFileUtils::appendFilePathsAndFixUnc(xSwiftBusDirectory, rf.getName()); + const QString destFileName = CFileUtils::appendFilePathsAndFixUnc(xSwiftBusDirectory, rf.getBaseName()); { QFile destFile(destFileName); if (destFile.exists()) @@ -199,7 +199,7 @@ namespace BlackGui { if (!sGui || !sGui->hasWebDataServices() || sGui->isShuttingDown()) { return; } const CRemoteFile rf = this->getRemoteFileSelected(); - if (!rf.getName().contains(CBuildConfig::getVersionString())) + if (!rf.getBaseName().contains(CBuildConfig::getVersionString())) { const QMessageBox::StandardButton reply = QMessageBox::question(this, "Download XSwiftBus", @@ -227,7 +227,7 @@ namespace BlackGui return; } - const QString saveAsFile = CFileUtils::appendFilePathsAndFixUnc(ui->le_DownloadDir->text(), rf.getName()); + const QString saveAsFile = CFileUtils::appendFilePathsAndFixUnc(ui->le_DownloadDir->text(), rf.getBaseName()); const QFile saveFile(saveAsFile); if (saveFile.exists()) {