summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-14 00:30:24 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-14 00:30:24 (GMT)
commit898be9d3eead2b90868fb12f55a10b8067423a0c (patch)
tree2b20f2be7e430f08cec090254360e4418b67820f
parentb919a05ee97a607d9d30fb9d567d8fa763a5bc82 (diff)
If we cannot load the file, do not signal we have a BLOB
-rw-r--r--kstars/indi/indiccd.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/kstars/indi/indiccd.cpp b/kstars/indi/indiccd.cpp
index 4c11948..ab19458 100644
--- a/kstars/indi/indiccd.cpp
+++ b/kstars/indi/indiccd.cpp
@@ -1288,8 +1288,11 @@ void CCD::processBLOB(IBLOB* bp)
emit newImage(fv->getView(normalTabID)->getDisplayImage(), targetChip);
}
else
+ {
// If opening file fails, we treat it the same as exposure failure and recapture again if possible
emit newExposureValue(targetChip, 0, IPS_ALERT);
+ return;
+ }
}
break;
@@ -1312,7 +1315,11 @@ void CCD::processBLOB(IBLOB* bp)
emit newImage(fv->getView(focusTabID)->getDisplayImage(), targetChip);
}
else
+ {
emit newExposureValue(targetChip, 0, IPS_ALERT);
+ // If there is problem loading image then BLOB is not valid so let's return
+ return;
+ }
break;
case FITS_GUIDE:
@@ -1334,7 +1341,10 @@ void CCD::processBLOB(IBLOB* bp)
emit newImage(fv->getView(guideTabID)->getDisplayImage(), targetChip);
}
else
+ {
emit newExposureValue(targetChip, 0, IPS_ALERT);
+ return;
+ }
break;
case FITS_CALIBRATE:
@@ -1354,7 +1364,10 @@ void CCD::processBLOB(IBLOB* bp)
targetChip->setImage(fv->getView(calibrationTabID), FITS_CALIBRATE);
}
else
+ {
emit newExposureValue(targetChip, 0, IPS_ALERT);
+ return;
+ }
break;
case FITS_ALIGN:
@@ -1374,7 +1387,10 @@ void CCD::processBLOB(IBLOB* bp)
targetChip->setImage(fv->getView(alignTabID), FITS_ALIGN);
}
else
+ {
emit newExposureValue(targetChip, 0, IPS_ALERT);
+ return;
+ }
break;