From d1c728b030c9369491daff37135404d3f85921d3 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Sun, 31 Jan 2021 15:44:16 +0000 Subject: [PATCH] Only confirm redownload of solar flux data if less than 1 day old --- plugins/feature/startracker/startrackergui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/feature/startracker/startrackergui.cpp b/plugins/feature/startracker/startrackergui.cpp index 6abcd1ad4..e707a07c6 100644 --- a/plugins/feature/startracker/startrackergui.cpp +++ b/plugins/feature/startracker/startrackergui.cpp @@ -1206,7 +1206,7 @@ void StarTrackerGUI::updateSolarFlux(bool all) { QDate today = QDateTime::currentDateTimeUtc().date(); QString solarFluxFile = getSolarFluxFilename(); - if (m_dlm.confirmDownload(solarFluxFile)) + if (m_dlm.confirmDownload(solarFluxFile, nullptr, 1)) { QString urlString = QString("http://www.sws.bom.gov.au/Category/World Data Centre/Data Display and Download/Solar Radio/station/learmonth/SRD/%1/L%2.SRD") .arg(today.year()).arg(today.toString("yyMMdd"));