diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 166ff910..1cff410c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2398,7 +2398,7 @@ void MainWindow::updateWifiListDone(QStringList slist) //获取表头信息 QString lastHeadLine = oldWifiSlist.at(0); - int lastIndexName; + int lastIndexName, lastIndexPath; lastHeadLine = lastHeadLine.trimmed(); bool isChineseInIt = lastHeadLine.contains(QRegExp("[\\x4e00-\\x9fa5]+")); if (isChineseInIt) { @@ -2406,6 +2406,7 @@ void MainWindow::updateWifiListDone(QStringList slist) } else { lastIndexName = lastHeadLine.indexOf("BSSID") + 19; } + lastIndexPath = lastHeadLine.indexOf("DBUS-PATH"); QString headLine = slist.at(0); int indexSecu, indexFreq, indexBSsid, indexName, indexPath, indexCate; @@ -2432,7 +2433,7 @@ void MainWindow::updateWifiListDone(QStringList slist) //列表中去除已经减少的wifi for (int i=1; i wifiList = wifiListWidget->findChildren();