| 806 | } |
| 807 | |
| 808 | void |
| 809 | Application::onScannerStopped(void) |
| 810 | { |
| 811 | QString messages = getLogText(); |
| 812 | |
| 813 | if (this->scanner != nullptr) { |
| 814 | delete this->scanner; |
| 815 | this->scanner = nullptr; |
| 816 | } |
| 817 | |
| 818 | if (messages.size() > 0) { |
| 819 | (void) QMessageBox::warning( |
| 820 | this, |
| 821 | "Scanner stopped", |
| 822 | "Running scanner has stopped. The error log was:<p /><pre>" |
| 823 | + getLogText() |
| 824 | + "</pre>", |
| 825 | QMessageBox::Ok); |
| 826 | } |
| 827 | |
| 828 | this->mediator->setPanSpectrumRunning(this->scanner != nullptr); |
| 829 | } |
| 830 | |
| 831 | void |
| 832 | Application::onScannerUpdated(void) |
nothing calls this directly
no test coverage detected