diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/resourceaccess.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 2f7d207..a7e14f5 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "common/handshake_generated.h" | 26 | #include "common/handshake_generated.h" |
27 | #include "common/revisionupdate_generated.h" | 27 | #include "common/revisionupdate_generated.h" |
28 | 28 | ||
29 | #include <QCoreApplication> | ||
29 | #include <QDebug> | 30 | #include <QDebug> |
30 | #include <QDir> | 31 | #include <QDir> |
31 | #include <QProcess> | 32 | #include <QProcess> |
@@ -180,7 +181,7 @@ void ResourceAccess::connected() | |||
180 | log(QString("Connected: %1").arg(d->socket->fullServerName())); | 181 | log(QString("Connected: %1").arg(d->socket->fullServerName())); |
181 | 182 | ||
182 | { | 183 | { |
183 | auto name = d->fbb.CreateString(QString::number((long long)this).toLatin1()); | 184 | auto name = d->fbb.CreateString(QString::number(QCoreApplication::applicationPid()).toLatin1()); |
184 | auto command = Akonadi2::CreateHandshake(d->fbb, name); | 185 | auto command = Akonadi2::CreateHandshake(d->fbb, name); |
185 | Akonadi2::FinishHandshakeBuffer(d->fbb, command); | 186 | Akonadi2::FinishHandshakeBuffer(d->fbb, command); |
186 | Commands::write(d->socket, ++d->messageId, Commands::HandshakeCommand, d->fbb); | 187 | Commands::write(d->socket, ++d->messageId, Commands::HandshakeCommand, d->fbb); |