Fix bug can connect two wired network at the same time
This commit is contained in:
parent
2e339d9134
commit
7b73f52e2e
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue