From e49c542566f73210a5ad42c5e10549bb3f0a6c22 Mon Sep 17 00:00:00 2001 From: Giacomo Strangolino <giacomo.strangolino@elettra.eu> Date: Fri, 24 Jun 2022 10:15:12 +0200 Subject: [PATCH] enabled stop all writings --- src/acdc.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/acdc.cpp b/src/acdc.cpp index 73088d3..59d6cd6 100644 --- a/src/acdc.cpp +++ b/src/acdc.cpp @@ -5,6 +5,7 @@ #include <cumacros.h> #include <quapps.h> #include <qulabel.h> +#include <quwriter.h> // cumbia #include "ui_acdc.h" @@ -47,8 +48,13 @@ void Acdc::m_stop_all() { } if(tgts.size() > 0) tgts << "pos/dmrc/dmrc_pos.01->Stop"; - foreach(const QString &t, tgts) - printf("would execute \e[1;32m%s\e[0m\n", qstoc(t)); + foreach(const QString &t, tgts) { + printf("executing \e[1;32m%s\e[0m\n", qstoc(t)); + QuWriter *w = new QuWriter(this, cu_pool, m_ctrl_factory_pool); + w->setAutoDestroy(true); + w->setTarget(t); + w->execute(); + } } -- GitLab