diff --git a/plugins/bluetooth/componments/bluetoothadapteritem.cpp b/plugins/bluetooth/componments/bluetoothadapteritem.cpp index 6edeee994..8e1e05672 100644 --- a/plugins/bluetooth/componments/bluetoothadapteritem.cpp +++ b/plugins/bluetooth/componments/bluetoothadapteritem.cpp @@ -276,6 +276,10 @@ void BluetoothAdapterItem::initData() void BluetoothAdapterItem::onDeviceAdded(const Device *device) { + // 关闭蓝牙设备时,不再响应上一个扫描操作的新增的 device + if (!m_adapterStateBtn->isChecked()) + return; + int insertRow = 0; foreach (const auto item, m_deviceItems) { if (item->device()->connectState()) {