Commit 3bd7edd8 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Fix regression causing crash on preview

parent c945f7b7
...@@ -1275,16 +1275,16 @@ void Capture::addJob(bool preview) ...@@ -1275,16 +1275,16 @@ void Capture::addJob(bool preview)
job->setFrame(frameXIN->value(), frameYIN->value(), frameWIN->value(), frameHIN->value()); job->setFrame(frameXIN->value(), frameYIN->value(), frameWIN->value(), frameHIN->value());
// Nothing more to do if preview
if (preview)
return;
if (jobUnderEdit == false) if (jobUnderEdit == false)
{ {
jobs.append(job); jobs.append(job);
job->setRootFITSDir(fitsDir->text()); job->setRootFITSDir(fitsDir->text());
// Nothing more to do if preview
if (preview)
return;
QString finalFITSDir = fitsDir->text() + QDir::separator() + frameTypeCombo->currentText(); QString finalFITSDir = fitsDir->text() + QDir::separator() + frameTypeCombo->currentText();
if (job->getFilterName().isEmpty() == false) if (job->getFilterName().isEmpty() == false)
finalFITSDir += QDir::separator() + job->getFilterName(); finalFITSDir += QDir::separator() + job->getFilterName();
......
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