X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTTerminalWidget.java;h=7a93f4e7b32320c69ade2090049146e9200fdef0;hb=a524aa2e24b0ddeb5aa8105f1bed1c1c7b75e1c7;hp=db405cfd72e0b13640f1b9bcded25ae03adf1c5d;hpb=469c2b3cf74f88072a9a1e5758379f24b14f469e;p=fanfix.git diff --git a/src/jexer/TTerminalWidget.java b/src/jexer/TTerminalWidget.java index db405cf..7a93f4e 100644 --- a/src/jexer/TTerminalWidget.java +++ b/src/jexer/TTerminalWidget.java @@ -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(