diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-07-31 13:12:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-06 11:44:38 +0200 |
commit | eacbe014db7a502b1045e848dc7ca40a2bb9e635 (patch) | |
tree | 52eebc51e1d6ecaf6bceb61b1e3e036bb584d4b6 /examples | |
parent | 3c33d71497f02dc72c045bcf48312c06d91d25e5 (diff) |
Improve btfiletransfer application
This improves the general error response while doing OPP.
Change-Id: I28fd68bfb5d6eae83ec6422c723acf98abc3abdd
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bluetooth/btfiletransfer/remoteselector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/bluetooth/btfiletransfer/remoteselector.cpp b/examples/bluetooth/btfiletransfer/remoteselector.cpp index f75a70fe..f7e68906 100644 --- a/examples/bluetooth/btfiletransfer/remoteselector.cpp +++ b/examples/bluetooth/btfiletransfer/remoteselector.cpp @@ -66,6 +66,7 @@ RemoteSelector::RemoteSelector(QWidget *parent) connect(m_discoveryAgent, SIGNAL(serviceDiscovered(QBluetoothServiceInfo)), this, SLOT(serviceDiscovered(QBluetoothServiceInfo))); connect(m_discoveryAgent, SIGNAL(finished()), this, SLOT(discoveryFinished())); + connect(m_discoveryAgent, SIGNAL(canceled()), this, SLOT(discoveryFinished())); ui->remoteDevices->setColumnWidth(3, 75); ui->remoteDevices->setColumnWidth(4, 100); @@ -223,8 +224,8 @@ void RemoteSelector::on_sendButton_clicked() QBluetoothTransferReply *reply = mgr.put(req, m_file); if (reply->error()){ qDebug() << "Failed to send file"; - delete reply; p->finished(reply); + reply->deleteLater(); return; } |