fix build error of qdebug

This commit is contained in:
peijiankang 2023-08-15 15:13:34 +08:00
parent e764163a9f
commit e78a28a1ab
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From bcca86a27c7bf6a9d192592de1104316a83c766a Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Tue, 15 Aug 2023 15:12:17 +0800
Subject: [PATCH] fix build error of qdebug
---
src/ipc/ipc_dbus.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ipc/ipc_dbus.cpp b/src/ipc/ipc_dbus.cpp
index b2f3877..5bcdd02 100644
--- a/src/ipc/ipc_dbus.cpp
+++ b/src/ipc/ipc_dbus.cpp
@@ -110,7 +110,7 @@ void IpcDbus::notifyGuideWidgetActive(QString appName)
// 这是一种比较友好的写法也可以用setArguments来实现
m << appName;
- bool bRet;
+ bool bRet = false;
// 发送Message
QDBusMessage response = QDBusConnection::sessionBus().call(m);
// 判断Method是否被正确返回
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: kylin-user-guide
Version: 1.0.5
Release: 2
Release: 3
Summary: Smanual for UKUI desktop environment
License: CC-BY-SA-4.0 and GPL-3.0-or-later
URL: http://www.ukui.org
@ -8,6 +8,7 @@ Source0: %{name}-%{version}.tar.gz
Source1: atril.tar.gz
Patch02: 0002-Fix-kylin-user-guide-version-is-empty.patch
Patch03: 0003-Fix-no-response-of-interface.patch
Patch04: fix-build-error-of-qdebug.patch
BuildRequires: cmake
BuildRequires: qt5-qtbase-devel
@ -85,6 +86,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Aug 15 2023 peijiankang <peijiankang@kylinos.cn> - 1.0.5-3
- add fix-build-error-of-qdebug.patch
* Fri Mar 03 2023 peijiankang <peijiankang@kylinos.cn> - 1.0.5-2
- add the user guide of atril