summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-27 17:16:43 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-27 17:16:43 (GMT)
commit523dfedb6333420c40f6e3e0d698ccd109b4f3cd (patch)
treea821c346bfc69c84a6dee04229f38496db6adb76
parentdc9fb7ea530356adb5953233b397cf6f58c63609 (diff)
Also disable temperature checkbox if there is no cooler
-rw-r--r--kstars/ekos/capture/capture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp
index ff0c877..19ca109 100644
--- a/kstars/ekos/capture/capture.cpp
+++ b/kstars/ekos/capture/capture.cpp
@@ -530,6 +530,7 @@ void Capture::checkCCD(int ccdNum)
double min,max,step;
setTemperatureB->setEnabled(true);
temperatureIN->setReadOnly(false);
+ temperatureCheck->setEnabled(true);
currentCCD->getMinMaxStep("CCD_TEMPERATURE", "CCD_TEMPERATURE_VALUE", &min, &max, &step);
temperatureIN->setMinimum(min);
temperatureIN->setMaximum(max);
@@ -539,6 +540,7 @@ void Capture::checkCCD(int ccdNum)
{
setTemperatureB->setEnabled(false);
temperatureIN->setReadOnly(true);
+ temperatureCheck->setEnabled(false);
}
double temperature=0;