mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Check the last error when the BTH device scanning is finished
If there is no error reported when the device scanning is finished then report to the dialog status that the scanning finished successfully. Otherwise report the last error. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9f043f4a93
commit
14ca6a4e77
1 changed files with 6 additions and 1 deletions
|
@ -124,7 +124,12 @@ void BtDeviceSelectionDialog::on_scan_clicked()
|
|||
|
||||
void BtDeviceSelectionDialog::remoteDeviceScanFinished()
|
||||
{
|
||||
ui->dialogStatus->setText("Scanning finished.");
|
||||
if (remoteDeviceDiscoveryAgent->error() == QBluetoothDeviceDiscoveryAgent::NoError) {
|
||||
ui->dialogStatus->setText("Scanning finished successfully.");
|
||||
} else {
|
||||
deviceDiscoveryError(remoteDeviceDiscoveryAgent->error());
|
||||
}
|
||||
|
||||
ui->scan->setEnabled(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue