| 557 | } |
| 558 | |
| 559 | MainWindow::~MainWindow() |
| 560 | { |
| 561 | // close the network manager thread |
| 562 | m_NetManagerThread->thread()->quit(); |
| 563 | m_NetManagerThread->deleteLater(); |
| 564 | |
| 565 | m_Ctx.Replay().DisconnectFromRemoteServer(); |
| 566 | |
| 567 | // explicitly delete our children here, so that the MainWindow is still alive while they are |
| 568 | // closing. |
| 569 | |
| 570 | setUpdatesEnabled(false); |
| 571 | qDeleteAll(findChildren<QWidget *>(QString(), Qt::FindDirectChildrenOnly)); |
| 572 | |
| 573 | m_RemoteProbeSemaphore.acquire(); |
| 574 | m_RemoteProbe->wait(); |
| 575 | m_RemoteProbe->deleteLater(); |
| 576 | delete ui; |
| 577 | } |
| 578 | |
| 579 | QString MainWindow::GetLayoutPath(int layout) |
| 580 | { |
nothing calls this directly
no test coverage detected