diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-09-16 14:14:10 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-09-19 14:32:07 +0200 |
commit | 38181b23286ed154c2e9c2e563a48304286566cb (patch) | |
tree | 343831fe3de77cc19f1e2e9c5539760525b59737 /src/bluetooth/qbluetoothtransferreply_qnx.cpp | |
parent | ea917cfce56186ac7cddddd701cfb83f8127a751 (diff) |
Remove not needed invokeMethod() calls when emitting finished() signal
Internally the transfer reply starts via QueuedConnection. Therefore the
finished signal doesn't have to be delayed even further. In addition
document the tight restriction when being interested in signals from
QBluetoothtransferReply.
Change-Id: I0358140e96e1e9709158310c493f34ea5e40582a
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothtransferreply_qnx.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothtransferreply_qnx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothtransferreply_qnx.cpp b/src/bluetooth/qbluetoothtransferreply_qnx.cpp index acd60894..4c378065 100644 --- a/src/bluetooth/qbluetoothtransferreply_qnx.cpp +++ b/src/bluetooth/qbluetoothtransferreply_qnx.cpp @@ -137,7 +137,7 @@ bool QBluetoothTransferReplyQnx::start() m_finished = true; m_running = false; emit QBluetoothTransferReply::error(m_error); - QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection, Q_ARG(QBluetoothTransferReply*, this)); + emit finished(this); return false; } if (request().address().isNull()) { @@ -146,7 +146,7 @@ bool QBluetoothTransferReplyQnx::start() m_finished = true; m_running = false; emit QBluetoothTransferReply::error(m_error); - QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection, Q_ARG(QBluetoothTransferReply*, this)); + emit finished(this); return false; } startOPP(file->fileName()); |