!12 fix open fail

From: @ll3366 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
This commit is contained in:
openeuler-ci-bot 2022-03-18 08:40:17 +00:00 committed by Gitee
commit 31b28e498d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 22 additions and 1 deletions

View File

@ -1,11 +1,12 @@
Name: dde-introduction
Version: 5.6.0.7
Release: 2
Release: 3
Summary: Introduction for UOS
License: GPLv3+
URL: https://github.com/linuxdeepin/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: modify-QPainterPath-error.patch
Patch1: fix-not-open.patch
BuildRequires: gcc-c++
BuildRequires: qt5-devel
@ -56,6 +57,9 @@ popd
%{_datadir}/%{name}/
%changelog
* Wed Mar 16 2022 liweigang <liweiganga@uniontech.com> - 5.6.0.7-3
- fix open fail
* Tue Feb 08 2022 liweigang <liweiganga@uniontech.com> - 5.6.0.7-2
- fix build error

17
fix-not-open.patch Normal file
View File

@ -0,0 +1,17 @@
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 739060c..f8a4472 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -33,8 +33,10 @@ MainWindow::MainWindow(DWidget *parent)
QDBusConnection::sessionBus(), this))
{
bool isx86 = QSysInfo::currentCpuArchitecture().startsWith("x86");
- isx86 && (DSysInfo::uosEditionType() != DSysInfo::UosEdition::UosEnterpriseC) ?
- m_useVideo = true : m_useVideo = false;
+ //isx86 && (DSysInfo::uosEditionType() != DSysInfo::UosEdition::UosEnterpriseC) ?
+ // m_useVideo = true : m_useVideo = false;
+
+ m_useVideo = false;
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this,
&MainWindow::slotTheme);