From 9fb1171336aa1eddbef2b1c6f2ddc6a854dd7558 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 16 Feb 2023 14:33:26 +0000 Subject: [PATCH] Fix restoring custom time --- plugins/feature/satellitetracker/satellitetrackergui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/feature/satellitetracker/satellitetrackergui.cpp b/plugins/feature/satellitetracker/satellitetrackergui.cpp index ab2446d04..feac7a4d4 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.cpp +++ b/plugins/feature/satellitetracker/satellitetrackergui.cpp @@ -373,9 +373,9 @@ void SatelliteTrackerGUI::displaySettings() ui->target->blockSignals(false); ui->target->setCurrentIndex(ui->target->findText(m_settings.m_target)); + ui->dateTime->setDateTime(QDateTime::fromString(m_settings.m_dateTime, Qt::ISODateWithMs)); ui->dateTimeSelect->setCurrentIndex((int)m_settings.m_dateTimeSelect); ui->dateTime->setVisible(m_settings.m_dateTimeSelect == SatelliteTrackerSettings::CUSTOM); - ui->dateTime->setDateTime(QDateTime::fromString(m_settings.m_dateTime, Qt::ISODateWithMs)); ui->autoTarget->setChecked(m_settings.m_autoTarget); ui->darkTheme->setChecked(m_settings.m_chartsDarkTheme); ui->satTable->horizontalHeader()->setSortIndicator(m_settings.m_columnSort, m_settings.m_columnSortOrder);