diff --git a/0002-fix-ukui-bluetooth-will-have-a-segfault-when-times-out.patch b/0002-fix-ukui-bluetooth-will-have-a-segfault-when-times-out.patch new file mode 100644 index 0000000..e65468f --- /dev/null +++ b/0002-fix-ukui-bluetooth-will-have-a-segfault-when-times-out.patch @@ -0,0 +1,25 @@ +From 20277829b38feb83ec7da521c9e9a581f710931c Mon Sep 17 00:00:00 2001 +From: tanyulong +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 + diff --git a/ukui-bluetooth.spec b/ukui-bluetooth.spec index a905236..344af9e 100644 --- a/ukui-bluetooth.spec +++ b/ukui-bluetooth.spec @@ -2,13 +2,14 @@ Name: ukui-bluetooth Version: 1.0.0 -Release: 2 +Release: 3 Summary: Advanced ukui bluetooth License: GPLv2+ URL: http://www.ukui.org Source0: %{name}-%{version}.tar.gz patch0: 0001-fix-Bluetooth-pulled-up-by-the-session-manager-and-exits-abnormally.patch +patch1: 0002-fix-ukui-bluetooth-will-have-a-segfault-when-times-out.patch BuildRequires: gsettings-qt-devel BuildRequires: glib2-devel @@ -38,6 +39,7 @@ Simple bluetooth tool for ukui desktop environment %prep %setup -q %patch0 -p1 +%patch1 -p1 %build mkdir build && cd build @@ -73,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Oct 30 2021 tanyulong - 1.0.0-3 +- After the Bluetooth pairing between the mobile phone and the system has timed out, and ukui-bluetooth will have a segmentation error + * Fri Oct 29 2021 tanyulong - 1.0.0-2 - For a machine without Bluetooth function,Bluetooth is pulled up by the session manager and exits abnormally