diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-08-05 10:07:05 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-09 14:57:14 +0200 |
commit | 40158b4277984890a55d87fca4e44d86d9a936f7 (patch) | |
tree | 2ab827035abc8976c56c912f5cff960ec4f8faa4 /examples/bluetooth/btfiletransfer | |
parent | f0e7da6dab3a19a9c978f2cbba2dea60fcea619b (diff) |
Improve QBluetoothTransferManager unit test
and fix some minor issues during the process.
Task-number: QTBUG-22017
Change-Id: Iff1adde28ba818c3ed0511cb5d45404f05d7c36f
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'examples/bluetooth/btfiletransfer')
-rw-r--r-- | examples/bluetooth/btfiletransfer/remoteselector.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/bluetooth/btfiletransfer/remoteselector.cpp b/examples/bluetooth/btfiletransfer/remoteselector.cpp index f7e68906..70cde972 100644 --- a/examples/bluetooth/btfiletransfer/remoteselector.cpp +++ b/examples/bluetooth/btfiletransfer/remoteselector.cpp @@ -222,6 +222,9 @@ void RemoteSelector::on_sendButton_clicked() p->show(); QBluetoothTransferReply *reply = mgr.put(req, m_file); + //mgr is default parent + //ensure that mgr doesn't take reply down when leaving scope + reply->setParent(this); if (reply->error()){ qDebug() << "Failed to send file"; p->finished(reply); |