diff options
-rw-r--r-- | qt-ui/btdeviceselectiondialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/btdeviceselectiondialog.cpp b/qt-ui/btdeviceselectiondialog.cpp index 6595912da..65f42d9ed 100644 --- a/qt-ui/btdeviceselectiondialog.cpp +++ b/qt-ui/btdeviceselectiondialog.cpp @@ -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; } |