* @brief Called on the main thread when pipeReadLoop() fails to open the pipe. */
| 546 | * @brief Called on the main thread when pipeReadLoop() fails to open the pipe. |
| 547 | */ |
| 548 | void IO::Drivers::Process::onPipeError() |
| 549 | { |
| 550 | Misc::Utilities::showMessageBox( |
| 551 | tr("Pipe Error"), tr("Could not open named pipe: %1").arg(m_pipePath), QMessageBox::Warning); |
| 552 | |
| 553 | QMetaObject::invokeMethod( |
| 554 | &IO::ConnectionManager::instance(), |
| 555 | [this] { IO::ConnectionManager::instance().disconnectDevice(this); }, |
| 556 | Qt::QueuedConnection); |
| 557 | } |
| 558 | |
| 559 | //-------------------------------------------------------------------------------------------------- |
| 560 | // Private: pipe read loop (runs on m_pipeThread) |
nothing calls this directly
no test coverage detected