1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

bug 206892: [terminal][serial] Incorrect connected state when COM port is owned by another terminal

https://bugs.eclipse.org/bugs/show_bug.cgi?id=206892
fixed the accidentally reversed logic!
This commit is contained in:
Michael Scharf 2007-10-22 07:35:06 +00:00
parent 874b39827f
commit b1d2e6973c

View file

@ -676,7 +676,7 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC
char character = event.character;
//if (!isConnected()) {
if (fState!=TerminalState.CLOSED) {
if (fState==TerminalState.CLOSED) {
// Pressing ENTER while not connected causes us to connect.
if (character == '\r') {
connectTerminal();