From a3d256fad1f3923da0b281d14b7ad5e66cf5be09 Mon Sep 17 00:00:00 2001 From: chenlelin Date: Mon, 24 May 2021 14:15:30 +0800 Subject: [PATCH] Modify some debug sentences --- src/main.cpp | 2 +- src/mainwindow.cpp | 27 +++++++++++++-------------- src/mainwindow.h | 2 +- src/oneconnform.cpp | 2 ++ src/onelancform.cpp | 4 +++- src/onelancform.h | 2 +- 6 files changed, 21 insertions(+), 18 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5802ca0c..7af6b948 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication a(argc, argv); - qInstallMessageHandler(messageOutput); + //qInstallMessageHandler(messageOutput); openlog(LOG_IDENT, LOG_NDELAY | LOG_NOWAIT | LOG_PID, LOG_USER); syslog(LOG_DEBUG, "Kylin Network Manager Is Already Launched"); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d67740c7..4ee60357 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -978,7 +978,6 @@ void MainWindow::onPhysicalCarrierChanged(bool flag) syslog(LOG_DEBUG,"wired physical cable is already plug out"); QtConcurrent::run([=](){ while (1) { - //activeLanDisconn(); BackThread *bt = new BackThread(); IFace *iface = bt->execGetIface(); if (iface->lstate != 0) { @@ -1622,7 +1621,7 @@ void MainWindow::getLanListDone(QStringList slist) OneLancForm *ccfAct = new OneLancForm(topLanListWidget, this, confForm, ksnm); connect(ccfAct, SIGNAL(selectedOneLanForm(QString, QString)), this, SLOT(oneTopLanFormSelected(QString, QString))); - connect(ccfAct, SIGNAL(disconnActiveLan()), this, SLOT(activeLanDisconn())); + connect(ccfAct, SIGNAL(requestHandleLanDisconn()), this, SLOT(handleLanDisconn())); ccfAct->setLanName(nname, ltype, nuuid, mIfName);//第二个参数本来是strLanName,但目前不需要翻译 ccfAct->setIcon(true); ccfAct->setLanInfo(objKyDBus->dbusActiveLanIpv4, objKyDBus->dbusActiveLanIpv6, mwBandWidth, macInterface); @@ -1776,11 +1775,11 @@ void MainWindow::getWifiListDone(QStringList slist) } if (current_wifi_list_state == RECONNECT_WIFI) { - qDebug()<<"======优选后的列表为======"; - foreach (QString line, slist) { - qDebug()< targetWifiStructList = connectableWifiPriorityList(slist); if (!targetWifiStructList.isEmpty()) { if (!isReconnectingWifi) { @@ -2298,9 +2297,9 @@ QVector MainWindow::connectableWifiPriorityList(const QStrin //再按照wifiPriority进行排序,先简单的选出最高优先级的wifi进行连接 if (selectedWifiListStruct.size() > 1) { devListSort(&selectedWifiListStruct); - foreach (structWifiProperty wifiPriorityAfterSort, selectedWifiListStruct) { - qDebug() << wifiPriorityAfterSort.bssid << " 的自动连接优先级是 : " << wifiPriorityAfterSort.priority; - } + //foreach (structWifiProperty wifiPriorityAfterSort, selectedWifiListStruct) { + // qDebug() << wifiPriorityAfterSort.bssid << " 的自动连接优先级是 : " << wifiPriorityAfterSort.priority; + //} } ocf->deleteLater(); return selectedWifiListStruct; @@ -2546,7 +2545,7 @@ void MainWindow::loadWifiListDone(QStringList slist) } } } - qDebug()<<"Wifi ssid="<