summaryrefslogtreecommitdiffstats
path: root/src/core/aspects/aspectcommanddebugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/aspects/aspectcommanddebugger.cpp')
-rw-r--r--src/core/aspects/aspectcommanddebugger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/aspects/aspectcommanddebugger.cpp b/src/core/aspects/aspectcommanddebugger.cpp
index d2d19d011..f0dca3ca4 100644
--- a/src/core/aspects/aspectcommanddebugger.cpp
+++ b/src/core/aspects/aspectcommanddebugger.cpp
@@ -53,17 +53,17 @@ AspectCommandDebugger::AspectCommandDebugger(QSystemInformationService *parent)
void AspectCommandDebugger::initialize()
{
- QObject::connect(this, &QTcpServer::newConnection, [this] {
+ QObject::connect(this, &QTcpServer::newConnection, this, [this] {
QTcpSocket *socket = nextPendingConnection();
m_connections.push_back(socket);
- QObject::connect(socket, &QTcpSocket::disconnected, [this, socket] {
+ QObject::connect(socket, &QTcpSocket::disconnected, this, [this, socket] {
m_connections.removeOne(socket);
// Destroy object to make sure all QObject connection are removed
socket->deleteLater();
});
- QObject::connect(socket, &QTcpSocket::readyRead, [this, socket] {
+ QObject::connect(socket, &QTcpSocket::readyRead, this, [this, socket] {
onCommandReceived(socket);
});
});