Merge pull request #78 from CrankyPants123/master

Fix bug#39018 Wrong alternate DNS address can be submitted
This commit is contained in:
chenlelin 2021-03-04 10:18:12 +08:00 committed by GitHub
commit 17e53d3f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -131,6 +131,7 @@ ConfForm::ConfForm(QWidget *parent) :
setModal(false);
KWindowEffects::enableBlurBehind(this->winId(), true, QRegion(path.toFillPolygon().toPolygon()));
setEnableOfBtn();
}
ConfForm::~ConfForm()
@ -553,7 +554,7 @@ void ConfForm::on_leDns_textEdited(const QString &arg1)
//编辑网络备用DNS
void ConfForm::on_leDns2_textEdited(const QString &arg1)
{
// this->setEnableOfBtn();
this->setEnableOfBtn();
}
//设置界面按钮是否可点击
@ -584,6 +585,14 @@ void ConfForm::setEnableOfBtn()
this->setBtnEnableFalse();
return;
}
if(ui->leDns2->text().isEmpty()){
}else{
if(!this->getTextEditState(ui->leDns2->text())){
this->setBtnEnableFalse();
return ;
}
}
}