From 00b1942a726f6a7eb3ed1d7fd47a795ba318aded Mon Sep 17 00:00:00 2001
From: delleceste <delleceste@gmail.com>
Date: Wed, 7 Sep 2022 14:54:59 +0200
Subject: [PATCH] Request #17730: revert to single VTargetX(3000),
 VTargetX(5000) and so

---
 src/channel.cpp | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/channel.cpp b/src/channel.cpp
index ec0002f..eaa9797 100644
--- a/src/channel.cpp
+++ b/src/channel.cpp
@@ -19,14 +19,18 @@ Channel::~Channel()
 void Channel::onPbFixClicked() {
     // FixedX(0) then VTargetX(NNNN) then FixedX(1) where X is the channel and NNNN the voltage
     // properties set in FourUHV::onPsListReady
-    const QString& t0 = QString("$1/Fixed%1(0)").arg(sender()->property("channel").toInt());
+    //
+    // Request #17730: revert to single VTargetX(3000), VTargetX(5000) and so
+    //
+//    const QString& t0 = QString("$1/Fixed%1(0)").arg(sender()->property("channel").toInt());
     const QString& t1 = sender()->property("target").toString();
-    const QString& t2 = QString("$1/Fixed%1(1))").arg(sender()->property("channel").toInt());
+//    const QString& t2 = QString("$1/Fixed%1(1))").arg(sender()->property("channel").toInt());
 
-    foreach(const QString& t, QStringList() << t0 << t1 << t2) {
+    foreach(const QString& t, QStringList() << t1) {
         QuWriter *w = new QuWriter(this, cu_pool, m_ctrl_fpool);
         w->setAutoDestroy(true);
         w->setTarget(t);
+//        printf("executing \"%s\"\n", qstoc(w->target()));
         w->execute();
     }
 }
-- 
GitLab