fix: fix quitapp
Signed-off-by: liweigang <liweiganga@uniontech.com>
This commit is contained in:
parent
e3ddee9d3d
commit
f61b555aae
@ -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
|
||||
|
||||
|
||||
12
fix-not-open-ddf-file.patch
Normal file
12
fix-not-open-ddf-file.patch
Normal 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)
|
||||
Loading…
x
Reference in New Issue
Block a user