Fix bug after installing the new system, there is no network tool icon in the taskbar, so it is unable to quickly configure the network

This commit is contained in:
chenlelin 2020-09-29 17:03:40 +08:00
parent 3f29ce1d36
commit b49bea1e06
1 changed files with 4 additions and 2 deletions

View File

@ -598,8 +598,10 @@ void KylinDBus::onPropertiesChanged(QVariantMap qvm)
for (int i=0; i<oldPaths.size(); i++) {
QDBusObjectPath old_path = oldPaths.at(i);
if (newPaths.size() == 0) {
qDebug()<<"debug: 已连接网络个数由1减少到0";
mw->onExternalConnectionChange(oldPathInfo.at(i));
if (oldPathInfo.size() == oldPaths.size()) {
qDebug()<<"debug: 已连接网络个数由1减少到0";
mw->onExternalConnectionChange(oldPathInfo.at(i));
}
} else {
for (int j=0; j<newPaths.size(); j++) {
QDBusObjectPath new_path = newPaths.at(j);