From 74e27eec168c0b1d06924dfa3f86007b92bf4226 Mon Sep 17 00:00:00 2001 From: Automatic Release Builder Date: Tue, 10 Nov 2020 17:14:34 +0000 Subject: [PATCH] SetupRootDialog: fix download URI --- src/GUI/SetupRootDialog.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GUI/SetupRootDialog.cxx b/src/GUI/SetupRootDialog.cxx index 2c42a0dea..74de604ed 100755 --- a/src/GUI/SetupRootDialog.cxx +++ b/src/GUI/SetupRootDialog.cxx @@ -221,8 +221,9 @@ void SetupRootDialog::onBrowse() void SetupRootDialog::onDownload() { - QString templateUrl = "https://sourceforge.net/projects/flightgear/files/release-%1/FlightGear-%1-data.tar.bz2"; - QUrl downloadUrl(templateUrl.arg(VERSION)); + QString templateUrl = "https://sourceforge.net/projects/flightgear/files/release-%1/FlightGear-%2-data.tar.bz2"; + QString majorMinorVersion = QString("%1.%2").arg(FLIGHTGEAR_MAJOR_VERSION).arg(FLIGHTGEAR_MINOR_VERSION); + QUrl downloadUrl(templateUrl.arg(majorMinorVersion).arg(VERSION)); QDesktopServices::openUrl(downloadUrl); }