Skip to content

Commit

Permalink
Namecoin: Enable editing SRV records in DNS dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Dec 12, 2019
1 parent 94228a6 commit babbe56
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions electrum_nmc/electrum/gui/qt/configure_dns_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,19 @@ def edit_selected_record(self):
self.ui.editTXTData.setText(record_data)

self.force_one_tab(self.ui.tabTXT)
elif record_type == "srv":
priority, weight, port, host = record_data

priority = str(priority)
weight = str(weight)
port = str(port)

self.ui.editSRVPriority.setText(priority)
self.ui.editSRVWeight.setText(weight)
self.ui.editSRVPort.setText(port)
self.ui.editSRVHost.setText(host)

self.force_one_tab(self.ui.tabSRV)

self.editing_row = row

Expand Down

0 comments on commit babbe56

Please sign in to comment.