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:
Claudiu Olteanu 2015-08-18 22:39:51 +03:00 committed by Dirk Hohndel
parent baa45472a2
commit 7a7d492525

View file

@ -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;
}