diff --git a/kstars/ekos/scheduler/scheduler.cpp b/kstars/ekos/scheduler/scheduler.cpp --- a/kstars/ekos/scheduler/scheduler.cpp +++ b/kstars/ekos/scheduler/scheduler.cpp @@ -423,12 +423,16 @@ if (raOk == false) { + if(jobUnderEdit < 0) + delete job; appendLogText(i18n("RA value %1 is invalid.", raBox->text())); return; } if (decOk == false) { + if(jobUnderEdit < 0) + delete job; appendLogText(i18n("DEC value %1 is invalid.", decBox->text())); return; }