638 } |
638 } |
639 |
639 |
640 if (CurrentInputState == INPUTSTATE_CONFIRM_DISCONNECTION) |
640 if (CurrentInputState == INPUTSTATE_CONFIRM_DISCONNECTION) |
641 { |
641 { |
642 if (ch == 'y' or ch == 'Y') |
642 if (ch == 'y' or ch == 'Y') |
643 { |
643 disconnected(); |
644 Session.disconnect(); |
|
645 DisconnectConfirmFunction(); |
|
646 } |
|
647 else if (ch == 'n' or ch == 'N') |
644 else if (ch == 'n' or ch == 'N') |
648 set_input_state (INPUTSTATE_NORMAL); |
645 set_input_state (INPUTSTATE_NORMAL); |
649 |
646 |
650 return; |
647 return; |
651 } |
648 } |
1026 input.replace (0, part.length(), complete); |
1023 input.replace (0, part.length(), complete); |
1027 CursorPosition = complete.length(); |
1024 CursorPosition = complete.length(); |
1028 NeedInputRender = true; |
1025 NeedInputRender = true; |
1029 } |
1026 } |
1030 } |
1027 } |
|
1028 |
|
1029 // ------------------------------------------------------------------------------------------------- |
|
1030 // |
|
1031 void Interface::disconnected() |
|
1032 { |
|
1033 Session.disconnect(); |
|
1034 set_input_state (INPUTSTATE_NORMAL); |
|
1035 } |