| 68 | } |
| 69 | |
| 70 | MainWindow::~MainWindow() { |
| 71 | if (m_scanner && m_scanner->isRunning()) { |
| 72 | // Disconnect first so the finished signal doesn't trigger deleteLater |
| 73 | // or null out m_scanner while we're waiting — parent-child cleanup |
| 74 | // handles deletion after wait() returns. |
| 75 | m_scanner->disconnect(); |
| 76 | m_scanner->wait(); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void MainWindow::startScan() { |
| 81 | if (m_scanner && m_scanner->isRunning()) |
nothing calls this directly
no outgoing calls
no test coverage detected