From: Vincent COUVERT Date: Wed, 26 Sep 2012 15:20:31 +0000 (+0200) Subject: Avoid the callbacks to be interrupted by an other callback on the same object for... X-Git-Tag: 5.4.0~29 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=a460b7fe610c9f8a921582b9219f9ae16d730e8a Avoid the callbacks to be interrupted by an other callback on the same object for example. This leads to wrong callback execution. Change-Id: Ic0ee3a297b1214c51e124a8f6a0d270ba67cc1a1 --- diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/events/callback/ScilabCallBack.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/events/callback/ScilabCallBack.java index 4c7c3c4..fceb0fd 100644 --- a/scilab/modules/gui/src/java/org/scilab/modules/gui/events/callback/ScilabCallBack.java +++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/events/callback/ScilabCallBack.java @@ -49,7 +49,7 @@ public abstract class ScilabCallBack extends CommonCallBack { public void callBack() { Thread launchMe = new Thread() { public void run() { - InterpreterManagement.putCommandInScilabQueue(getCommand()); + InterpreterManagement.requestScilabExec(getCommand()); } }; launchMe.start();