We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a178d6 commit c27f701Copy full SHA for c27f701
deepin-system-monitor-main/model/process_table_model.cpp
@@ -87,8 +87,10 @@ void ProcessTableModel::updateProcessListWithUserSpecified()
87
ProcessSet *processSet = ProcessDB::instance()->processSet();
88
const QList<pid_t> &newpidlst = processSet->getPIDList();
89
90
- beginRemoveRows({}, 0, m_procIdList.size());
91
- endRemoveRows();
+ if (rowCount() > 0) {
+ beginRemoveRows({}, 0, rowCount() - 1);
92
+ endRemoveRows();
93
+ }
94
m_procIdList.clear();
95
m_processList.clear();
96
int raw;
0 commit comments