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:
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();
|
||||
try {
|
||||
IRemoteCmdSubSystem cmdSubSystem = command.getCommandSubSystem();
|
||||
if (cmdSubSystem != null){
|
||||
if (cmdSubSystem != null && cmdSubSystem.isConnected()){
|
||||
cmdSubSystem.removeShell(command);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue