mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup Bluetooth local device and the discovery agent on exit
Do some extra cleanup when the BtDeviceSelectionDialog is destroyed. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
118e978b5a
commit
9f043f4a93
1 changed files with 9 additions and 0 deletions
|
@ -61,6 +61,15 @@ BtDeviceSelectionDialog::BtDeviceSelectionDialog(QWidget *parent) :
|
|||
BtDeviceSelectionDialog::~BtDeviceSelectionDialog()
|
||||
{
|
||||
delete ui;
|
||||
|
||||
// Clean the local device
|
||||
delete localDevice;
|
||||
|
||||
// Clean the device discovery agent
|
||||
if (remoteDeviceDiscoveryAgent->isActive())
|
||||
remoteDeviceDiscoveryAgent->stop();
|
||||
|
||||
delete remoteDeviceDiscoveryAgent;
|
||||
}
|
||||
|
||||
void BtDeviceSelectionDialog::on_changeDeviceState_clicked()
|
||||
|
|
Loading…
Add table
Reference in a new issue