mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Display BLE errors with messagebox
This commit is contained in:
parent
025f010301
commit
694ece8b02
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include <QOperatingSystemVersion>
|
#include <QOperatingSystemVersion>
|
||||||
|
|
||||||
|
#include "Misc/Utilities.h"
|
||||||
#include "IO/Drivers/BluetoothLE.h"
|
#include "IO/Drivers/BluetoothLE.h"
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@ -40,6 +41,12 @@ IO::Drivers::BluetoothLE::BluetoothLE()
|
|||||||
{
|
{
|
||||||
connect(this, &IO::Drivers::BluetoothLE::deviceIndexChanged, this,
|
connect(this, &IO::Drivers::BluetoothLE::deviceIndexChanged, this,
|
||||||
&IO::Drivers::BluetoothLE::configurationChanged);
|
&IO::Drivers::BluetoothLE::configurationChanged);
|
||||||
|
|
||||||
|
connect(this, &IO::Drivers::BluetoothLE::error, this,
|
||||||
|
[=](const QString &message) {
|
||||||
|
Misc::Utilities::showMessageBox(tr("BLE I/O Module Error"),
|
||||||
|
message);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user