fix:the control center is core, when get wilreless list

This commit is contained in:
renpeijia 2021-10-19 15:09:35 +08:00
parent 801b403973
commit 80ed0ffdf1
2 changed files with 3 additions and 5 deletions

View File

@ -11,14 +11,10 @@ FORMS += \
HEADERS += \
$$PWD/customstyle.h \
$$PWD/kylinwiredwidget.h \
$$PWD/mainwindow.h \
$$PWD/nmdemo.h \
$$PWD/wificonfigdialog.h
SOURCES += \
$$PWD/customstyle.cpp \
$$PWD/kylinwiredwidget.cpp \
$$PWD/mainwindow.cpp \
$$PWD/nmdemo.cpp \
$$PWD/wificonfigdialog.cpp

View File

@ -1072,7 +1072,9 @@ void WlanPage::getWirelessList(QMap<QString, QVector<QStringList> > &map)
if (actMap.contains(iter.key())) {
qDebug() << "find " <<iter.key();
KyWirelessNetItem data;
if (m_wirelessNetResource->getWifiNetwork(iter.key(), actMap[iter.key()].at(0), data)) {
QString ssid ="";
m_wirelessNetResource->getSsidByUuid(actMap[iter.key()].at(0), ssid);
if (m_wirelessNetResource->getWifiNetwork(iter.key(), ssid, data)) {
vector.append(QStringList()<<data.m_NetSsid<<QString::number(data.m_signalStrength)<<data.m_secuType);
activeSsid = data.m_NetSsid;
}