Fix bug can connect two wired network at the same time

This commit is contained in:
chenlelin 2021-02-03 21:15:01 +08:00
parent 2e339d9134
commit 7b73f52e2e
2 changed files with 3 additions and 6 deletions

View File

@ -1356,12 +1356,6 @@ void MainWindow::onNewConnAdded(int type) {
// 获取lan列表回调
void MainWindow::getLanListDone(QStringList slist)
{
qDebug()<<"------------";
foreach (QString str, slist) {
qDebug()<<str;
}
qDebug()<<"------------";
if (this->is_btnWifiList_clicked == 1) {
return;
}

View File

@ -375,6 +375,9 @@ void OneLancForm::on_btnConnSub_clicked()
void OneLancForm::toConnectWiredNetwork()
{
if (mw->is_stop_check_net_state == 1) {
return;
}
mw->is_stop_check_net_state = 1;
QThread *t = new QThread();
BackThread *bt = new BackThread();