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)