diff options
Diffstat (limited to 'examples/serialbus')
-rw-r--r-- | examples/serialbus/modbus/adueditor/modbustcpclient_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/serialbus/modbus/adueditor/modbustcpclient_p.h b/examples/serialbus/modbus/adueditor/modbustcpclient_p.h index 9d091d8..c1b37a8 100644 --- a/examples/serialbus/modbus/adueditor/modbustcpclient_p.h +++ b/examples/serialbus/modbus/adueditor/modbustcpclient_p.h @@ -98,7 +98,7 @@ public: using TypeId = void (QTimer::*)(int); q->connect(q, &QModbusClient::timeoutChanged, element.timer.data(), static_cast<TypeId>(&QTimer::setInterval)); - QObject::connect(element.timer.data(), &QTimer::timeout, [this, writeToSocket]() { + QObject::connect(element.timer.data(), &QTimer::timeout, q, [this, writeToSocket]() { if (!m_transactionStore.contains(m_tId)) return; |