1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 21:08:06 +01:00

Allow empty DNS fields (LP: #492795)

This commit is contained in:
David Paleino
2011-09-18 12:11:53 +02:00
parent 1f8a1d5f76
commit e97787622e

View File

@@ -604,10 +604,7 @@ 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.
for ent in [entry.txt_dns_2, entry.txt_dns_3]:
if ent.get_text() != "":
opt_entlist.append(ent) opt_entlist.append(ent)
# Required entries. # Required entries.