peony: fix a problem that sometimes failed to switch between sidebar items

Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
This commit is contained in:
侯红勋 2024-04-16 10:18:21 +08:00
parent d5f9dcca4a
commit 9bf9462c63
2 changed files with 47 additions and 1 deletions

View File

@ -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?= <houhongxun@kylinos.cn>
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: 侯红勋 <houhongxun@kylinos.cn>
---
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

View File

@ -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 <houhongxun@kylinos.cn> - 3.10.0-5
- fix problem failed to switch between sidebar items
* Mon Apr 15 2024 houhongxun <houhongxun@kylinos.cn> - 3.10.0-4
- fix segmentation fault when rapidly open windows by mouse clicks