Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:pcbsd/pcbsd

  • Loading branch information...
commit ec6e81d2c53d4b064aefcb9c9fa55e3681fccd1f 2 parents ef5392a + f75599e
@kmoore134 kmoore134 authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp
View
12 src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp
@@ -843,15 +843,17 @@ void NetworkMan::slotCheckGlobalText()
}
}
}
-
- if ( lineDNS1->text() != "..." && ! pcbsd::Utils::validateIPV4(lineDNS1->text() ) && groupDNS->isChecked()) {
+
+ if(groupDNS->isChecked()){
+ if( lineDNS1->text() == "..." && lineDNS2->text() == "..." ){ return; }
+ if ( lineDNS1->text() != "..." && ! pcbsd::Utils::validateIPV4(lineDNS1->text() ) ) {
textGlobalError->setText(tr("Invalid DNS specified"));
return;
- }
-
- if ( lineDNS2->text() != "..." && ! pcbsd::Utils::validateIPV4(lineDNS2->text() ) && groupDNS->isChecked()) {
+ }
+ if ( lineDNS2->text() != "..." && ! pcbsd::Utils::validateIPV4(lineDNS2->text() ) ) {
textGlobalError->setText(tr("Invalid DNS specified"));
return;
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.