summaryrefslogtreecommitdiff
path: root/widgets/astro.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2022-09-17 12:51:35 +0200
committerChristoph Berg <myon@debian.org>2022-09-17 12:51:35 +0200
commitae3ec401d5558b23a18f19dca17d2b193c328574 (patch)
treee19e5978cb233b15711462848ea455e767fb169d /widgets/astro.cpp
parentf211efa3653230799ef3458eaa7e9dd437db7a8a (diff)
parent4d2fac0dafe835b1ed479bebe136c3afe748ecf3 (diff)
Update upstream source from tag 'upstream/2.6.0_rc4+repack'
Update to upstream version '2.6.0~rc4+repack' with Debian dir beb58bcc4aa42df3ffcfdd1ef0613fd612bb3100
Diffstat (limited to 'widgets/astro.cpp')
-rwxr-xr-xwidgets/astro.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/astro.cpp b/widgets/astro.cpp
index 05e830c2..a090a519 100755
--- a/widgets/astro.cpp
+++ b/widgets/astro.cpp
@@ -55,7 +55,6 @@ Astro::Astro(QSettings * settings, Configuration const * configuration, QWidget
Astro::~Astro ()
{
- ui_->cbDopplerTracking->setChecked (false);
Q_EMIT tracking_update ();
if (isVisible ()) write_settings ();
}
@@ -69,6 +68,8 @@ void Astro::closeEvent (QCloseEvent * e)
void Astro::read_settings ()
{
SettingsGroup g (settings_, "Astro");
+ bool b=settings_->value("DopplerTracking",false).toBool();
+ ui_->cbDopplerTracking->setChecked(b);
ui_->doppler_widget->setVisible (ui_->cbDopplerTracking->isChecked ());
m_DopplerMethod=settings_->value("DopplerMethod",0).toInt();
switch (m_DopplerMethod)
@@ -86,7 +87,7 @@ void Astro::read_settings ()
void Astro::write_settings ()
{
SettingsGroup g (settings_, "Astro");
- //settings_->setValue ("DopplerTracking", ui_->cbDopplerTracking->isChecked ());
+ settings_->setValue ("DopplerTracking", ui_->cbDopplerTracking->isChecked());
settings_->setValue ("DopplerMethod",m_DopplerMethod);
settings_->setValue ("window/pos", pos ());
}