Only xclick can catch callback execution.
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / events / callback / CommonCallBack.java
index 61eafc5..3da5eca 100644 (file)
@@ -118,7 +118,7 @@ public abstract class CommonCallBack extends AbstractAction {
      * @param e The event that launch the callback.
      */
     public void actionPerformed(ActionEvent e) {
-        if (!GlobalEventWatcher.isActivated()) {
+        if (!GlobalEventWatcher.isCatchingCallback()) {
             callBack();
         } else {
             if (this.callback.getCommand() != null) {