托盘有线网络点击【未连接】不应有选中效果

This commit is contained in:
zhangyuanyuan1 2023-07-24 14:01:06 +08:00
parent d3a2589fc7
commit cbf11f9651
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;