diff options
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); |