diff --git a/0002-modify-area-info-display-error.patch b/0002-modify-area-info-display-error.patch new file mode 100644 index 0000000..0883323 --- /dev/null +++ b/0002-modify-area-info-display-error.patch @@ -0,0 +1,25 @@ +From 6fbd0243017e5731bb5db6bb6844833d97b4020e Mon Sep 17 00:00:00 2001 +From: pei-jiankang +Date: Tue, 1 Mar 2022 16:59:57 +0800 +Subject: [PATCH] modify area-info display error + +--- + plugins/time-language/area/area.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/time-language/area/area.cpp b/plugins/time-language/area/area.cpp +index 409f894..048f2be 100644 +--- a/plugins/time-language/area/area.cpp ++++ b/plugins/time-language/area/area.cpp +@@ -264,7 +264,7 @@ void Area::initComponent() { + int langIndex = lang.split(':').at(0) == "zh_CN" ? 1 : 0; + int formatIndex = res.at(0) == "zh_CN.UTF-8" ? 1 : 0; + // ui->langcomboBox->setCurrentIndex(langIndex); +- ui->countrycomboBox->setCurrentIndex(formatIndex); ++ ui->countrycomboBox->setCurrentIndex(langIndex); + + initFormComponent(0b1111); + } +-- +2.33.0 + diff --git a/ukui-control-center.spec b/ukui-control-center.spec index 80d9e99..a508b16 100644 --- a/ukui-control-center.spec +++ b/ukui-control-center.spec @@ -1,12 +1,14 @@ %define debug_package %{nil} Name: ukui-control-center Version: 3.0.4 -Release: 2 +Release: 3 Summary: utilities to configure the UKUI desktop License: GPL-2+ URL: http://www.ukui.org Source0: %{name}-%{version}.tar.gz Patch01: 0001-modify-version-info-error.patch +Patch02: 0002-modify-area-info-display-error.patch + BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qtbase-devel BuildRequires: gsettings-qt-devel @@ -103,6 +105,7 @@ Suggests: ukui-settings-daemon %prep %setup -q %patch1 -p1 +%patch2 -p1 %build qmake-qt5 make -j24 @@ -150,6 +153,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Mar 1 2022 pei-jiankang - 3.0.4-3 +- modify area-info display error + * Tue Mar 1 2022 pei-jiankang - 3.0.4-2 - modify version-info error