fix not open

This commit is contained in:
liweigang 2022-03-11 14:59:58 +08:00
parent c594bd76a5
commit 19218c0974
2 changed files with 25 additions and 2 deletions

View File

@ -1,10 +1,11 @@
Name: deepin-devicemanager
Version: 5.5.9.36
Release: 2
Release: 3
Summary: Device Manager is a handy tool for viewing hardware information and managing the devices
License: GPLv3+
URL: https://github.com/linuxdeepin/deepin-devicemanager
Source0: %{name}-%{version}.tar.gz
Patch0: fix-no-open.patch
BuildRequires: gcc-c++
BuildRequires: cmake3
@ -34,7 +35,7 @@ Requires: util-linux
%{summary}.
%prep
%autosetup
%autosetup -p1
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
@ -60,6 +61,9 @@ popd
%{_datadir}/polkit-1/actions/*.policy
%changelog
* Fri Mar 11 2022 liweigang <liweiganga@uniontech.com> - 5.5.9.36-3
- fix not open
* Sun Jan 30 2022 liweigang <liweiganga@uniontech.com> - 5.5.9.36-2
- fix build error

19
fix-no-open.patch Normal file
View File

@ -0,0 +1,19 @@
diff --git a/deepin-devicemanager/src/ThreadPool/ThreadPool.cpp b/deepin-devicemanager/src/ThreadPool/ThreadPool.cpp
index 7337b56..7de5391 100644
--- a/deepin-devicemanager/src/ThreadPool/ThreadPool.cpp
+++ b/deepin-devicemanager/src/ThreadPool/ThreadPool.cpp
@@ -178,11 +178,11 @@ void ThreadPool::loadCmdInfo()
getCmdList(lstCmd, m_Arch);
QList<QStringList>::iterator it = lstCmd.begin();
- QObjectCleanupHandler *cleaner = new QObjectCleanupHandler;
- cleaner->setParent(this);
+ //QObjectCleanupHandler *cleaner = new QObjectCleanupHandler;
+ //cleaner->setParent(this);
for (; it != lstCmd.end(); ++it) {
CmdTask *task = new CmdTask((*it)[0], (*it)[1], (*it)[2], (*it)[3], this);
- cleaner->add(task);
+ //cleaner->add(task);
start(task);
task->setAutoDelete(true);
}