summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserver_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qbluetoothserver_p.cpp')
-rw-r--r--src/bluetooth/qbluetoothserver_p.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver_p.cpp b/src/bluetooth/qbluetoothserver_p.cpp
index 1a123c4d..213d73f1 100644
--- a/src/bluetooth/qbluetoothserver_p.cpp
+++ b/src/bluetooth/qbluetoothserver_p.cpp
@@ -46,7 +46,7 @@
QT_BEGIN_NAMESPACE
QBluetoothServerPrivate::QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol sType)
- : serverType(sType)
+ : serverType(sType), m_lastError(QBluetoothServer::NoError)
{
}
@@ -62,6 +62,9 @@ bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port)
{
Q_UNUSED(address);
Q_UNUSED(port);
+ Q_D(QBluetoothServer);
+ d->m_lastError = UnsupportedProtocolError;
+ emit error(d->m_lastError);
return false;
}