diff --git a/src/main/java/ui/tmlcompd/TMLCFork.java b/src/main/java/ui/tmlcompd/TMLCFork.java index d1fc0ee9fcc7a7bcc287724f75d4f6e586d7786e..b08427f246f40576aa1ac7be7debe4deae96f0cd 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; }