#51 wip
[nikiroo-utils.git] / src / jexer / TTerminalWidget.java
index db405cfd72e0b13640f1b9bcded25ae03adf1c5d..7a93f4e7b32320c69ade2090049146e9200fdef0 100644 (file)
@@ -229,9 +229,6 @@ public class TTerminalWidget extends TScrollableWidget
         super(parent, x, y, width, height);
 
         this.closeAction = closeAction;
-        if (closeAction != null) {
-            this.closeAction.data = this;
-        }
 
         String [] fullCommand;
 
@@ -310,9 +307,6 @@ public class TTerminalWidget extends TScrollableWidget
         super(parent, x, y, width, height);
 
         this.closeAction = closeAction;
-        if (closeAction != null) {
-            this.closeAction.data = this;
-        }
 
         if (System.getProperty("jexer.TTerminal.shell") != null) {
             String shell = System.getProperty("jexer.TTerminal.shell");
@@ -829,7 +823,7 @@ public class TTerminalWidget extends TScrollableWidget
             app.invokeLater(new Runnable() {
                 public void run() {
                     if (closeAction != null) {
-                        closeAction.DO();
+                        closeAction.DO(TTerminalWidget.this);
                     }
                     if (getApplication() != null) {
                         getApplication().postEvent(new TMenuEvent(