From a93ea47973867716da48f221cea0eb1dfd1db7f0 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Thu, 10 Mar 2011 18:52:05 +0000 Subject: [PATCH] [338031] Remote Shell view tabs should have close (x) icon -need to check whether connectioned before attempting to remove a shell --- .../rse/internal/shells/ui/view/CommandsViewWorkbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/CommandsViewWorkbook.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/CommandsViewWorkbook.java index dfd234a071c..6150010a64c 100644 --- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/CommandsViewWorkbook.java +++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/view/CommandsViewWorkbook.java @@ -244,7 +244,7 @@ public class CommandsViewWorkbook extends Composite IRemoteCommandShell command = (IRemoteCommandShell)((CommandsViewPage)data).getInput(); try { IRemoteCmdSubSystem cmdSubSystem = command.getCommandSubSystem(); - if (cmdSubSystem != null){ + if (cmdSubSystem != null && cmdSubSystem.isConnected()){ cmdSubSystem.removeShell(command); } }