diff options
Diffstat (limited to 'saltoqd/obexconnection.cpp')
-rw-r--r-- | saltoqd/obexconnection.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/saltoqd/obexconnection.cpp b/saltoqd/obexconnection.cpp index 4b34dc3..40c373a 100644 --- a/saltoqd/obexconnection.cpp +++ b/saltoqd/obexconnection.cpp @@ -59,7 +59,9 @@ ObexTransfer * ObexConnection::put(const QString &name, const QByteArray &data) _pending.push_back(transfer); - handleNextPending(); + // Delay actual start of the transfer in order to give time for caller + // to connect to signals of the returned transfer object. + QMetaObject::invokeMethod(this, "handleNextPending", Qt::QueuedConnection); return transfer; } |