Commit ab9c3f2e authored by Jasem Mutlaq's avatar Jasem Mutlaq

Clear target name when stopping scheduler

parent 2ea48400
......@@ -2973,7 +2973,7 @@ void Capture::setTemperature()
void Capture::clearSequenceQueue()
{
activeJob=NULL;
targetName = QString();
targetName.clear();
stop();
while (queueTable->rowCount() > 0)
queueTable->removeRow(0);
......
......@@ -927,6 +927,9 @@ void Scheduler::stop()
return;
}
// Clear target name in capture interface upon stopping
captureInterface->call(QDBus::AutoDetect, "setTargetName", QString());
if (scriptProcess.state() == QProcess::Running)
scriptProcess.terminate();
......
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