ukui-bluetooth/0002-fix-ukui-bluetooth-will-have-a-segfault-when-times-out.patch

26 lines
884 B
Diff

From 20277829b38feb83ec7da521c9e9a581f710931c Mon Sep 17 00:00:00 2001
From: tanyulong <tanyulong@kylinos.cn>
Date: Sat, 30 Oct 2021 16:50:00 +0800
Subject: [PATCH] fix ukui-bluetooth will have a segfault
---
ukui-bluetooth/agent/bluetoothagent.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/ukui-bluetooth/agent/bluetoothagent.cpp b/ukui-bluetooth/agent/bluetoothagent.cpp
index 842c275..067d910 100644
--- a/ukui-bluetooth/agent/bluetoothagent.cpp
+++ b/ukui-bluetooth/agent/bluetoothagent.cpp
@@ -123,8 +123,6 @@ void BluetoothAgent::requestConfirmation(BluezQt::DevicePtr device, const QStrin
connect(m_device.data(), &BluezQt::Device::pairedChanged, this, [=](bool st){
if (st == false) {
request.reject();
- if (pincodewidget != nullptr)
- pincodewidget->close();
}
return;
});
--
2.30.0