Skip to content

Commit

Permalink
Namecoin: Clear fields after creating a DNS record
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Dec 12, 2019
1 parent adc3d8d commit 9bde8bc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions electrum_nmc/electrum/gui/qt/configure_dns_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def create_address_record(self):

self.insert_record(idx, record)

self.ui.editAHostname.setText("")

def create_cname_record(self):
model = self.ui.listDNSRecords.model()
idx = model.rowCount()
Expand All @@ -169,6 +171,8 @@ def create_cname_record(self):

self.insert_record(idx, record)

self.ui.editCNAMEAlias.setText("")

def create_ns_record(self):
model = self.ui.listDNSRecords.model()
idx = model.rowCount()
Expand All @@ -180,6 +184,8 @@ def create_ns_record(self):

self.insert_record(idx, record)

self.ui.editNSHosts.setText("")

def create_ds_record(self):
model = self.ui.listDNSRecords.model()
idx = model.rowCount()
Expand All @@ -200,6 +206,9 @@ def create_ds_record(self):

self.insert_record(idx, record)

self.ui.editDSKeyTag.setText("")
self.ui.editDSHash.setText("")

def create_tls_record(self):
model = self.ui.listDNSRecords.model()
idx = model.rowCount()
Expand Down Expand Up @@ -229,6 +238,8 @@ def create_tls_record(self):

self.insert_record(idx, record)

self.ui.editTLSData.setPlainText("")

def create_sshfp_record(self):
model = self.ui.listDNSRecords.model()
idx = model.rowCount()
Expand All @@ -248,6 +259,8 @@ def create_sshfp_record(self):

self.insert_record(idx, record)

self.ui.editSSHFPFingerprint.setText("")

def create_txt_record(self):
model = self.ui.listDNSRecords.model()
idx = model.rowCount()
Expand All @@ -259,6 +272,8 @@ def create_txt_record(self):

self.insert_record(idx, record)

self.ui.editTXTData.setText("")

def create_srv_record(self):
model = self.ui.listDNSRecords.model()
idx = model.rowCount()
Expand All @@ -279,6 +294,11 @@ def create_srv_record(self):

self.insert_record(idx, record)

self.ui.editSRVPriority.setText("")
self.ui.editSRVWeight.setText("")
self.ui.editSRVPort.setText("")
self.ui.editSRVHost.setText("")

def has_freenet_record(self, domain):
for record in self.get_records():
record_domain, record_type, data = record
Expand Down

0 comments on commit 9bde8bc

Please sign in to comment.