aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/btdeviceselectiondialog.cpp
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-07-19 22:11:16 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-20 05:52:10 -0700
commit6608b4c7a93c1901af510b9937dc620bc36cf29a (patch)
tree2d5c9d6c963465bcd4444332601fb68772e07437 /qt-ui/btdeviceselectiondialog.cpp
parent5fd0c7dd430a7ecb5526a4ed07b75abe332c561d (diff)
downloadsubsurface-6608b4c7a93c1901af510b9937dc620bc36cf29a.tar.gz
Update the message shown on pairing erorrs
Advice the user to use his operating system for the pairing step if the remote device requires a custom PIN code. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/btdeviceselectiondialog.cpp')
-rw-r--r--qt-ui/btdeviceselectiondialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/btdeviceselectiondialog.cpp b/qt-ui/btdeviceselectiondialog.cpp
index 9cde87ec5..007fe940e 100644
--- a/qt-ui/btdeviceselectiondialog.cpp
+++ b/qt-ui/btdeviceselectiondialog.cpp
@@ -272,7 +272,9 @@ void BtDeviceSelectionDialog::pairingFinished(const QBluetoothAddress &address,
void BtDeviceSelectionDialog::error(QBluetoothLocalDevice::Error error)
{
ui->dialogStatus->setText(QString("Local device error: %1.")
- .arg((error == QBluetoothLocalDevice::PairingError)? "Pairing error" : "Unknown error"));
+ .arg((error == QBluetoothLocalDevice::PairingError)? "Pairing error. If the remote device requires a custom PIN code, "
+ "please try to pair the devices using your operating system. "
+ : "Unknown error"));
}
void BtDeviceSelectionDialog::deviceDiscoveryError(QBluetoothDeviceDiscoveryAgent::Error error)