aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-08-18 22:39:51 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-20 22:45:55 -0700
commit7a7d492525191e623be543cb60ca87effbf3c8b3 (patch)
tree86d72ba32b4ee18212360185aed7f79da7eca188 /qt-ui
parentbaa45472a2cc17981376f0bfb16c857165239f23 (diff)
downloadsubsurface-7a7d492525191e623be543cb60ca87effbf3c8b3.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/btdeviceselectiondialog.cpp4
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;
}