From 7f54e6e8c0802721e56dea05aefd212b8ed0ca8f Mon Sep 17 00:00:00 2001
From: Ludovic Apvrille <ludovic.apvrille@telecom-paristech.fr>
Date: Tue, 26 Jun 2018 15:50:27 +0200
Subject: [PATCH] Update on fork channel

---
 src/main/java/ui/tmlcompd/TMLCFork.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/ui/tmlcompd/TMLCFork.java b/src/main/java/ui/tmlcompd/TMLCFork.java
index d1fc0ee9fc..b08427f246 100755
--- a/src/main/java/ui/tmlcompd/TMLCFork.java
+++ b/src/main/java/ui/tmlcompd/TMLCFork.java
@@ -142,12 +142,12 @@ public class TMLCFork extends TMLCChannelFacility implements WithAttributes {
         if ((s != null) && (s.length() > 0) && (!s.equals(oldValue))) {
             try {
                 int testI = Integer.decode(value).intValue();
+                value = s;
             } catch (Exception e) {
                 JOptionPane.showMessageDialog(frame,
                         "Could not change the number of samples: invalid value",
                         "Error",
                         JOptionPane.INFORMATION_MESSAGE);
-                value = oldValue;
                 return false;
             }
 
-- 
GitLab