summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-11 10:48:41 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-11 10:48:41 (GMT)
commit9716aae1fced997545b93f4b600483e8c1b49e4c (patch)
tree8f92709f413d6fb8893a5b66cf698d3ded32cdf6
parent4d9484481c1d3fe20746bdc19f113b6b550c749f (diff)
Set dirty after writing the changes
-rw-r--r--kstars/ekos/scheduler.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/kstars/ekos/scheduler.cpp b/kstars/ekos/scheduler.cpp
index 1262f6c..55b84a6 100644
--- a/kstars/ekos/scheduler.cpp
+++ b/kstars/ekos/scheduler.cpp
@@ -310,18 +310,15 @@ void Scheduler::selectFITS()
dirPath = QUrl(fitsURL.url(QUrl::RemoveFilename));
- setDirty();
-
fitsEdit->setText(fitsURL.toLocalFile());
- //raBox->clear();
- //decBox->clear();
-
if (nameEdit->text().isEmpty())
nameEdit->setText(fitsURL.fileName());
addToQueueB->setEnabled(sequenceEdit->text().isEmpty() == false);
mosaicB->setEnabled(sequenceEdit->text().isEmpty() == false);
+
+ setDirty();
}
void Scheduler::selectSequence()
@@ -332,8 +329,6 @@ void Scheduler::selectSequence()
dirPath = QUrl(sequenceURL.url(QUrl::RemoveFilename));
- setDirty();
-
sequenceEdit->setText(sequenceURL.toLocalFile());
// For object selection, all fields must be filled
@@ -344,6 +339,8 @@ void Scheduler::selectSequence()
addToQueueB->setEnabled(true);
mosaicB->setEnabled(true);
}
+
+ setDirty();
}
void Scheduler::selectStartupScript()
@@ -4112,7 +4109,7 @@ void Scheduler::checkCapParkingStatus()
if (startupState == STARTUP_UNPARKING_CAP)
{
startupState = STARTUP_COMPLETE;
- appendLogText(i18n("Cap unparked."));
+ appendLogText(i18n("Cap unparked."));
}
break;
@@ -4137,7 +4134,7 @@ void Scheduler::checkCapParkingStatus()
}
void Scheduler::startJobEvaluation()
-{
+{
jobEvaluationOnly = true;
if (Dawn < 0)
calculateDawnDusk();
@@ -4216,7 +4213,7 @@ void Scheduler::startMosaicTool()
center.setDec0(dec);
mosaicTool.setCenter(center);
- mosaicTool.calculateFOV();
+ mosaicTool.calculateFOV();
mosaicTool.adjustSize();
int batchCount=1;
@@ -4273,7 +4270,7 @@ void Scheduler::startMosaicTool()
}
QUrl mosaicURL;
- mosaicURL.setPath(QString("%1/%2_mosaic.esl").arg(outputDir).arg(targetName));
+ mosaicURL.setPath(QString("%1/%2_mosaic.esl").arg(outputDir).arg(targetName));
if (saveScheduler(mosaicURL))
{