From fb701cca13840e2a6a16743a873afa1b2e2c8879 Mon Sep 17 00:00:00 2001 From: liuxinhao Date: Fri, 18 Nov 2022 14:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E6=97=B6=E6=9C=AA=E5=8F=8A=E6=97=B6=E6=9B=B4=E6=96=B0=E7=BB=98?= =?UTF-8?q?=E5=88=B6(#I61QHP)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...x-the-failure-to-update-the-drawing-.patch | 44 +++++++++++++++++++ kiran-session-guard.spec | 7 ++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 0001-fix-user-icon-fix-the-failure-to-update-the-drawing-.patch diff --git a/0001-fix-user-icon-fix-the-failure-to-update-the-drawing-.patch b/0001-fix-user-icon-fix-the-failure-to-update-the-drawing-.patch new file mode 100644 index 0000000..135da58 --- /dev/null +++ b/0001-fix-user-icon-fix-the-failure-to-update-the-drawing-.patch @@ -0,0 +1,44 @@ +From d80a8b3b5dc5ddf841474ce1fd3024483e6adb9b Mon Sep 17 00:00:00 2001 +From: liuxinhao +Date: Fri, 18 Nov 2022 13:45:49 +0800 +Subject: [PATCH] fix(user icon): fix the failure to update the drawing in time + when setting the default avatar +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- 修复用户头像设置默认头像时未及时更新绘制 +--- + lib/common-widgets/user-avatar.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/lib/common-widgets/user-avatar.cpp b/lib/common-widgets/user-avatar.cpp +index 9394818..7869569 100644 +--- a/lib/common-widgets/user-avatar.cpp ++++ b/lib/common-widgets/user-avatar.cpp +@@ -18,6 +18,7 @@ + #include + #include + #include ++#include + + #define DEFAULT_USER_AVATAR ":/common-widgets-images/user_180.png" + +@@ -81,7 +82,7 @@ QPixmap UserAvatar::scalePixmapAdjustSize (const QPixmap &pixmap) + QPixmap temp = pixmap.scaled(radius * 2, radius * 2, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation); + return temp; + } +-#include ++ + void UserAvatar::setDefaultImage () + { + if (!m_pixmap.load(DEFAULT_USER_AVATAR)) +@@ -90,4 +91,5 @@ void UserAvatar::setDefaultImage () + return; + } + m_scaledPixmap = scalePixmapAdjustSize(m_pixmap); ++ update(); + } +-- +2.33.0 + diff --git a/kiran-session-guard.spec b/kiran-session-guard.spec index 30985fb..ea8f12b 100644 --- a/kiran-session-guard.spec +++ b/kiran-session-guard.spec @@ -1,12 +1,14 @@ Name: kiran-session-guard Version: 2.4.0 -Release: 2 +Release: 3 Summary: Kiran desktop environment login and lock screen dialog Summary(zh_CN): Kiran桌面环境登录和解锁框 License: MulanPSL-2.0 Source0: %{name}-%{version}.tar.gz + Patch01: 0001-fix-CVE-PAM-authorization-bypass-due-to-incorrect-us.patch +Patch02: 0001-fix-user-icon-fix-the-failure-to-update-the-drawing-.patch %define SHOW_VIRTUAL_KEYBOARD 0 @@ -134,6 +136,9 @@ gtk-update-icon-cache -f /usr/share/icons/hicolor/ rm -rf %{buildroot} %changelog +* Fri Nov 18 2022 liuxinhao - 2.4.0-3 +- KYOS-F: fix the failure to update the drawing in time when setting the default avatar(#I61QHP) + * Mon Nov 14 2022 liuxinhao - 2.4.0-2 - KYOS-F: fix PAM authorization bypass due to incorrect usage