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:
parent
3f29ce1d36
commit
b49bea1e06
|
@ -598,8 +598,10 @@ void KylinDBus::onPropertiesChanged(QVariantMap qvm)
|
||||||
for (int i=0; i<oldPaths.size(); i++) {
|
for (int i=0; i<oldPaths.size(); i++) {
|
||||||
QDBusObjectPath old_path = oldPaths.at(i);
|
QDBusObjectPath old_path = oldPaths.at(i);
|
||||||
if (newPaths.size() == 0) {
|
if (newPaths.size() == 0) {
|
||||||
qDebug()<<"debug: 已连接网络个数由1减少到0";
|
if (oldPathInfo.size() == oldPaths.size()) {
|
||||||
mw->onExternalConnectionChange(oldPathInfo.at(i));
|
qDebug()<<"debug: 已连接网络个数由1减少到0";
|
||||||
|
mw->onExternalConnectionChange(oldPathInfo.at(i));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int j=0; j<newPaths.size(); j++) {
|
for (int j=0; j<newPaths.size(); j++) {
|
||||||
QDBusObjectPath new_path = newPaths.at(j);
|
QDBusObjectPath new_path = newPaths.at(j);
|
||||||
|
|
Loading…
Reference in New Issue