mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:13: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.");
|
||||
break;
|
||||
default:
|
||||
#if defined(Q_OS_WIN)
|
||||
errorDescription = remoteDeviceDiscoveryAgent->errorToString();
|
||||
#else
|
||||
errorDescription = QString("An unknown error has occurred.");
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue