From f61b555aae1d6ad834712b4eb42b9e3457e29ff2 Mon Sep 17 00:00:00 2001 From: liweigang Date: Fri, 20 Dec 2024 17:42:12 +0800 Subject: [PATCH] fix: fix quitapp Signed-off-by: liweigang --- deepin-draw.spec | 6 +++++- fix-not-open-ddf-file.patch | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 fix-not-open-ddf-file.patch diff --git a/deepin-draw.spec b/deepin-draw.spec index 1f8f217..152de13 100644 --- a/deepin-draw.spec +++ b/deepin-draw.spec @@ -1,11 +1,12 @@ Name: deepin-draw Version: 5.10.6 -Release: 2 +Release: 3 Summary: A lightweight drawing tool for Linux Deepin License: GPLv3+ URL: https://github.com/linuxdeepin/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch1: 0001-fix-coredump-in-clearChildLayout-function.patch +Patch2: fix-not-open-ddf-file.patch BuildRequires: cmake BuildRequires: gcc-c++ @@ -61,6 +62,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/deepin-draw.xml %changelog +* Fri Dec 20 2024 liweigang - 5.10.6-3 +- fix: fix quitapp + * Wed Dec 11 2024 lvgenggeng - 5.10.6-2 - fix: fix coredump in clearChildLayout function diff --git a/fix-not-open-ddf-file.patch b/fix-not-open-ddf-file.patch new file mode 100644 index 0000000..fca49cf --- /dev/null +++ b/fix-not-open-ddf-file.patch @@ -0,0 +1,12 @@ +diff --git a/src/application.cpp b/src/application.cpp +index 1a279be..63c35b0 100644 +--- a/src/application.cpp ++++ b/src/application.cpp +@@ -581,6 +581,7 @@ void Application::quitApp() + settings.setValue("windowState", topMainWindow()->saveState()); + settings.setValue("opened", "true"); + qApp->quit(); ++ _Exit(0); + } + + QVariant Application::defaultAttriVar(void *sceneKey, int attris) -- Gitee