Commit f8ac2f79 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Apparently checking isEnabled is not reliable indicator since it depends on parent status as well

parent 343f484e
Pipeline #41777 passed with stage
in 6 minutes and 25 seconds
......@@ -6607,12 +6607,12 @@ void Align::setSettings(const QJsonObject &settings)
FOVScopeCombo->setCurrentIndex(settings["scopeType"].toInt(0));
// Gain
if (GainSpin->isEnabled())
if (currentCCD->hasGain())
{
syncControl("gain", GainSpin);
}
// ISO
if (ISOCombo->isEnabled())
if (ISOCombo->count() > 1)
{
const int iso = settings["iso"].toInt(ISOCombo->currentIndex());
if (iso != ISOCombo->currentIndex())
......
......@@ -4207,10 +4207,10 @@ void Focus::setSettings(const QJsonObject &settings)
binningCombo->setCurrentIndex(bin);
// Gain
if (gainIN->isEnabled())
if (currentCCD->hasGain())
syncControl(settings, "gain", gainIN);
// ISO
if (ISOCombo->isEnabled())
if (ISOCombo->count() > 1)
{
const int iso = settings["iso"].toInt(ISOCombo->currentIndex());
if (iso != ISOCombo->currentIndex())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment