diff --git a/0001-peony-fix-segment-fault-when-rapidly-open-windows.patch b/0001-peony-fix-segment-fault-when-rapidly-open-windows.patch new file mode 100644 index 0000000..b6cebe7 --- /dev/null +++ b/0001-peony-fix-segment-fault-when-rapidly-open-windows.patch @@ -0,0 +1,30 @@ +From e996788ca2bd34d1621d081b99eb6cd7646e931c 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 11:37:10 +0800 +Subject: [PATCH] peony: fix segment fault when rapidly open windows +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: 侯红勋 +--- + src/windows/main-window.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/windows/main-window.cpp b/src/windows/main-window.cpp +index a010fcf..26840cd 100644 +--- a/src/windows/main-window.cpp ++++ b/src/windows/main-window.cpp +@@ -833,6 +833,9 @@ void MainWindow::updateWindowIcon() + + void MainWindow::goToUri(const QString &uri, bool addHistory, bool force) + { ++ if (!getCurrentPage() || !getCurrentPage()->getView()) ++ return; ++ + auto viewId = this->getCurrentPage()->getView()->viewId(); + + if (QString::compare(viewId, "Icon View", Qt::CaseSensitive) == 0) { +-- +2.43.0 + diff --git a/peony.spec b/peony.spec index c028069..21f28b1 100644 --- a/peony.spec +++ b/peony.spec @@ -1,11 +1,12 @@ Name: peony Version: 3.10.0 -Release: 3 +Release: 4 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 BuildRequires: libudisks2-devel BuildRequires: libnotify-devel @@ -79,6 +80,7 @@ Provides: libpeony %prep %setup -q %patch01 -p1 +%patch02 -p1 %build %{qmake_qt5} @@ -135,6 +137,9 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/%{_lib}/*.so %changelog +* Mon Apr 15 2024 houhongxun - 3.10.0-4 +- fix segmentation fault when rapidly open windows by mouse clicks + * Tue Jun 06 2023 peijiankang - 3.10.0-3 - fix share error of peony