diff --git a/0001-peony-fix-a-problem-that-failed-to-switch-between-si.patch b/0001-peony-fix-a-problem-that-failed-to-switch-between-si.patch new file mode 100644 index 0000000..288fabc --- /dev/null +++ b/0001-peony-fix-a-problem-that-failed-to-switch-between-si.patch @@ -0,0 +1,41 @@ +From 32d60ce1eefbfab56e8a5aa46c8129405f07f38b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= +Date: Mon, 15 Apr 2024 14:17:05 +0800 +Subject: [PATCH] peony: fix a problem that failed to switch between sidebar + items +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +when quickly click between side bar items + +Signed-off-by: 侯红勋 +--- + src/windows/main-window.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/windows/main-window.cpp b/src/windows/main-window.cpp +index 26840cd..2b0e430 100644 +--- a/src/windows/main-window.cpp ++++ b/src/windows/main-window.cpp +@@ -1190,7 +1190,7 @@ void MainWindow::validBorder() + void MainWindow::initUI(const QString &uri) + { + connect(this, &MainWindow::locationChangeStart, this, [=]() { +- m_side_bar->blockSignals(true); ++ //m_side_bar->blockSignals(true); + m_header_bar->blockSignals(true); + QCursor c; + c.setShape(Qt::WaitCursor); +@@ -1201,7 +1201,7 @@ void MainWindow::initUI(const QString &uri) + }); + + connect(this, &MainWindow::locationChangeEnd, this, [=]() { +- m_side_bar->blockSignals(false); ++ //m_side_bar->blockSignals(false); + m_header_bar->blockSignals(false); + QCursor c; + c.setShape(Qt::ArrowCursor); +-- +2.43.0 + diff --git a/peony.spec b/peony.spec index 21f28b1..2d85240 100644 --- a/peony.spec +++ b/peony.spec @@ -1,12 +1,13 @@ Name: peony Version: 3.10.0 -Release: 4 +Release: 5 Summary: file Manager for the UKUI desktop License: GPL-3.0-or-later and MIT and BSD-3-Clause URL: http://www.ukui.org Source0: %{name}-%{version}.tar.gz Patch01: 0001-fix-share-error-of-peony.patch Patch02: 0001-peony-fix-segment-fault-when-rapidly-open-windows.patch +Patch03: 0001-peony-fix-a-problem-that-failed-to-switch-between-si.patch BuildRequires: libudisks2-devel BuildRequires: libnotify-devel @@ -81,6 +82,7 @@ Provides: libpeony %setup -q %patch01 -p1 %patch02 -p1 +%patch03 -p1 %build %{qmake_qt5} @@ -137,6 +139,9 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/%{_lib}/*.so %changelog +* Tue Apr 16 2024 houhongxun - 3.10.0-5 +- fix problem failed to switch between sidebar items + * Mon Apr 15 2024 houhongxun - 3.10.0-4 - fix segmentation fault when rapidly open windows by mouse clicks