1
0

qt receive tab: "receive address" is now coloured red if already used

closes #3812
closes #5374
This commit is contained in:
SomberNight
2019-05-27 20:24:09 +02:00
parent 41f160dd74
commit 41802d8094
2 changed files with 13 additions and 1 deletions

View File

@@ -105,9 +105,10 @@ class RequestList(MyTreeView):
except InternalAddressCorruption as e:
self.parent.show_error(str(e))
addr = ''
if not current_address in domain and addr:
if current_address not in domain and addr:
self.parent.set_receive_address(addr)
self.parent.new_request_button.setEnabled(addr != current_address)
self.parent.update_receive_address_styling()
self.model().clear()
self.update_headers(self.__class__.headers)