mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:03:24 +00:00
Get a pretty print message when a device discovery error occured
Try to get a pretty print message when a device discovery error is raised and it is unknown. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
baa45472a2
commit
7a7d492525
1 changed files with 4 additions and 0 deletions
|
@ -379,7 +379,11 @@ void BtDeviceSelectionDialog::deviceDiscoveryError(QBluetoothDeviceDiscoveryAgen
|
||||||
errorDescription = QString("Writing or reading from the device resulted in an error.");
|
errorDescription = QString("Writing or reading from the device resulted in an error.");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
errorDescription = remoteDeviceDiscoveryAgent->errorToString();
|
||||||
|
#else
|
||||||
errorDescription = QString("An unknown error has occurred.");
|
errorDescription = QString("An unknown error has occurred.");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue