mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-18 22:45:23 +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:
parent
9a58014bc6
commit
a93ea47973
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ public class CommandsViewWorkbook extends Composite
|
||||||
IRemoteCommandShell command = (IRemoteCommandShell)((CommandsViewPage)data).getInput();
|
IRemoteCommandShell command = (IRemoteCommandShell)((CommandsViewPage)data).getInput();
|
||||||
try {
|
try {
|
||||||
IRemoteCmdSubSystem cmdSubSystem = command.getCommandSubSystem();
|
IRemoteCmdSubSystem cmdSubSystem = command.getCommandSubSystem();
|
||||||
if (cmdSubSystem != null){
|
if (cmdSubSystem != null && cmdSubSystem.isConnected()){
|
||||||
cmdSubSystem.removeShell(command);
|
cmdSubSystem.removeShell(command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue