Merge branch '2309bug-0724' into 'yhkylin/v101'

【reopen】180228 【网络连接】删除有线网络,点击未连接网络后一直处于选中状态

See merge request kylinos-src/kylin-nm!226
This commit is contained in:
赵世旭 2023-07-24 08:27:56 +00:00
commit 533cae15dc
1 changed files with 1 additions and 0 deletions

View File

@ -467,6 +467,7 @@ void LanPage::onRemoveConnection(QString path) //删除时后端会
removeConnectionItem(m_activeConnectionMap, m_activatedLanListWidget, path);
if (m_activeConnectionMap.count() <= 0) {
addEmptyConnectItem(m_activeConnectionMap, m_activatedLanListWidget);
m_activatedLanListWidget->setSelectionMode(QAbstractItemView::SelectionMode::NoSelection);
}
setNetSpeed->stop();
return;