!21 fix quitapp

From: @Venland 
Reviewed-by: @ut-layne-yang 
Signed-off-by: @ut-layne-yang
This commit is contained in:
openeuler-ci-bot 2025-04-16 09:36:14 +00:00 committed by Gitee
commit 6e6f09bc28
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 1 deletions

View File

@ -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 <liweiganga@uniontech.com> - 5.10.6-3
- fix: fix quitapp
* Wed Dec 11 2024 lvgenggeng <lvgenggeng@uniontech.com> - 5.10.6-2
- fix: fix coredump in clearChildLayout function

View File

@ -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)