From cbd814d6fa46a488be2edac6a4944d2df6a9382c Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Fri, 29 Mar 2019 11:35:02 +0100 Subject: Add context information to QObject::connect(...) calls Change-Id: I3888da16e5152c479deeb3e5bfbb8d0dd587cea8 Reviewed-by: Karsten Heimrich --- examples/serialbus/modbus/adueditor/modbustcpclient_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/serialbus') 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(&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; -- cgit v1.2.3