Allow empty DNS fields (LP: #492795)
This commit is contained in:
1 parent
1f8a1d5f76
commit
e97787622e
1 file changed
+2
-5
+2
-5
@@ -604,11 +604,8 @@ class appGui(object):
|
|||||||
|
|
||||||
if entry.chkbox_static_dns.get_active() and \
|
if entry.chkbox_static_dns.get_active() and \
|
||||||
not entry.chkbox_global_dns.get_active():
|
not entry.chkbox_global_dns.get_active():
|
||||||
req_entlist.append(entry.txt_dns_1)
|
for ent in [entry.txt_dns_1, entry.txt_dns_2, entry.txt_dns_3]:
|
||||||
# Only append additional dns entries if they're entered.
|
opt_entlist.append(ent)
|
||||||
for ent in [entry.txt_dns_2, entry.txt_dns_3]:
|
|
||||||
if ent.get_text() != "":
|
|
||||||
opt_entlist.append(ent)
|
|
||||||
|
|
||||||
# Required entries.
|
# Required entries.
|
||||||
for lblent in req_entlist:
|
for lblent in req_entlist:
|
||||||
|
|||||||
Reference in new issue
Block a user