1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-17 05:55:22 +02:00

[338031] Remote Shell view tabs should have close (x) icon

-need to check whether connectioned before attempting to remove a shell
This commit is contained in:
David McKnight 2011-03-10 18:52:05 +00:00
parent 9a58014bc6
commit a93ea47973

View file

@ -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);
}
}