MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onScannerStopped

Method onScannerStopped

App/Application.cpp:808–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806}
807
808void
809Application::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
831void
832Application::onScannerUpdated(void)

Callers

nothing calls this directly

Calls 3

getLogTextFunction · 0.85
setPanSpectrumRunningMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected