!111 [sync] PR-110: add 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch
From: @openeuler-sync-bot Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
dcf27a6d7d
27
0010-Fix-the-problem-of-scrambled-shortcut-keys.patch
Normal file
27
0010-Fix-the-problem-of-scrambled-shortcut-keys.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From d4982a90afbc954404f1bb821e636f57c599e3ef Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
Date: Mon, 15 Aug 2022 14:48:53 +0800
|
||||
Subject: [PATCH] Fix the problem of scrambled shortcut keys
|
||||
|
||||
---
|
||||
plugins/devices/shortcut/shortcut.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/plugins/devices/shortcut/shortcut.cpp b/plugins/devices/shortcut/shortcut.cpp
|
||||
index 15c37ca..2f52086 100644
|
||||
--- a/plugins/devices/shortcut/shortcut.cpp
|
||||
+++ b/plugins/devices/shortcut/shortcut.cpp
|
||||
@@ -96,6 +96,10 @@ int Shortcut::get_plugin_type()
|
||||
|
||||
QWidget *Shortcut::get_plugin_ui()
|
||||
{
|
||||
+ //修复快捷键中文乱码问题
|
||||
+ const QString locale = QLocale::system().name();
|
||||
+ (void) setlocale(LC_ALL, QString(locale + ".UTF-8").toStdString().c_str());
|
||||
+
|
||||
if (mFirstLoad) {
|
||||
mFirstLoad = false;
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
%define debug_package %{nil}
|
||||
Name: ukui-control-center
|
||||
Version: 3.0.4
|
||||
Release: 14
|
||||
Release: 15
|
||||
Summary: utilities to configure the UKUI desktop
|
||||
License: GPL-2+
|
||||
URL: http://www.ukui.org
|
||||
@ -15,6 +15,7 @@ Patch06: 0006-fix-the-problem-that-the-new-user-in-the-control-panel-is-s
|
||||
Patch07: 0007-modify-icon-theme-not-display.patch
|
||||
Patch08: 0008-Fix-preferred-language-default-errors.patch
|
||||
Patch09: 0009-Fix-the-resolution-donotsave-button-fails.patch
|
||||
Patch10: 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch
|
||||
|
||||
BuildRequires: qt5-qtsvg-devel
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
@ -121,6 +122,7 @@ Suggests: ukui-settings-daemon
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
qmake-qt5
|
||||
@ -169,6 +171,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 15 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.4-15
|
||||
- Fix the problem of scrambled shortcut keys
|
||||
|
||||
* Thu Jul 21 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.4-14
|
||||
- rebuild
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user