[education/kstars] kstars/ekos/scheduler: Only emit warning, but allow doubled sequences

Wolfgang Reissenberger <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a41a6f908839ddbc854a70944a8756bca3b75f81 by Wolfgang Reissenberger.
Committed on 18/07/2026 at 11:46.
Pushed by wreissenberger into branch 'master'.

Only emit warning, but allow doubled sequences

The scheduler checks, if for the same target there is another job using the same capture sequence. If this is the case, adding a new one fails.

This is too restrictive for example in setups with multiple cameras, where the following camera might have always the same sequence but the target camera has different ones. This is for example necessary if you have an OSC camera as second camera and you simply want to shoot the stars in parallel to multiple filters on the main camera.

Therefore, the warning is issued, but adding is still possible.

M  +1    -1    kstars/ekos/scheduler/scheduler.cpp

https://invent.kde.org/education/kstars/-/commit/a41a6f908839ddbc854a70944a8756bca3b75f81

diff --git a/kstars/ekos/scheduler/scheduler.cpp b/kstars/ekos/scheduler/scheduler.cpp
index 444bbabb04..f87c5d7baf 100644
--- a/kstars/ekos/scheduler/scheduler.cpp
+++ b/kstars/ekos/scheduler/scheduler.cpp
@@ -1105,11 +1105,11 @@ bool Scheduler::fillJobFromUI(SchedulerJob *job)
         if (existingJob->getName() == nameEdit->text() &&
                 existingJob->getSequenceFile() == QUrl::fromLocalFile(sequenceEdit->text()))
         {
+            // issue a warning but continue
             process()->appendLogText(
                 i18n("Warning: A job with name '%1' and the same sequence file already exists. "
                  "This would cause both jobs to complete simultaneously due to shared storage.",
                      nameEdit->text()));
-            return false;
         }
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.