| 506 | /// SLOTS |
| 507 | |
| 508 | void ConsoleWidget::processInput() |
| 509 | { |
| 510 | if (!commander) |
| 511 | return; |
| 512 | |
| 513 | QString commandLine = TrimmedEnds(InputLineEdit->text()); |
| 514 | |
| 515 | if ( this->userSelectedCompletion ) { |
| 516 | this->userSelectedCompletion = false; |
| 517 | return; |
| 518 | } |
| 519 | |
| 520 | InputLineEdit->clear(); |
| 521 | if (commandLine.isEmpty()) |
| 522 | return; |
| 523 | |
| 524 | this->AddToHistory(commandLine); |
| 525 | |
| 526 | auto cmdResult = commander->ProcessInput( agent->data.Id, commandLine ); |
| 527 | if (cmdResult.is_pre_hook) |
| 528 | return; |
| 529 | |
| 530 | this->ProcessCmdResult(commandLine, cmdResult, false); |
| 531 | } |
| 532 | |
| 533 | void ConsoleWidget::toggleSearchPanel() |
| 534 | { |
no test coverage detected