From a95e8c0d393d1a7395f6e5f64ee8549938a0f290 Mon Sep 17 00:00:00 2001 From: lJxDabab <1206370306@qq.com> Date: Mon, 26 Feb 2024 09:23:21 +0800 Subject: [PATCH] fix: the app add a blank proc while some apps closed. the app add a blank proc while some apps closed. Log: the dsm cant delete the closed proc on ui Bug: https://pms.uniontech.com/bug-view-226579.html --- deepin-system-monitor-main/process/process_set.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deepin-system-monitor-main/process/process_set.cpp b/deepin-system-monitor-main/process/process_set.cpp index e173b237..fefd01df 100644 --- a/deepin-system-monitor-main/process/process_set.cpp +++ b/deepin-system-monitor-main/process/process_set.cpp @@ -104,8 +104,9 @@ void ProcessSet::scanProcess() m_prePid.removeAt(pid); //remove disappear process pid if(m_simpleSet.contains(pid)) m_simpleSet.remove(pid); + //for each pid,only one process reflected.So "removeOne()"func replied. if(m_pidMyApps.contains(pid)) - m_pidMyApps.removeAt(pid); + m_pidMyApps.removeOne(pid); } }