summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2016-04-15 18:34:55 +0300
committerJasem Mutlaq <[email protected]>2016-04-15 18:34:55 +0300
commit3bd7edd887bac9f0105675b2b88439485e5b0c59 (patch)
tree135960e4a0ca1e5bf80670859211df8f75448762
parentc945f7b734ec0a044934c8a2fee2e66680100c6b (diff)
Fix regression causing crash on preview
-rw-r--r--kstars/ekos/capture.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kstars/ekos/capture.cpp b/kstars/ekos/capture.cpp
index 9058ae9..741b3ec 100644
--- a/kstars/ekos/capture.cpp
+++ b/kstars/ekos/capture.cpp
@@ -1275,16 +1275,16 @@ void Capture::addJob(bool preview)
job->setFrame(frameXIN->value(), frameYIN->value(), frameWIN->value(), frameHIN->value());
- // Nothing more to do if preview
- if (preview)
- return;
-
if (jobUnderEdit == false)
{
jobs.append(job);
job->setRootFITSDir(fitsDir->text());
+ // Nothing more to do if preview
+ if (preview)
+ return;
+
QString finalFITSDir = fitsDir->text() + QDir::separator() + frameTypeCombo->currentText();
if (job->getFilterName().isEmpty() == false)
finalFITSDir += QDir::separator() + job->getFilterName();