Skip to content

Commit

Permalink
show request memo
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasV committed May 10, 2014
1 parent 6665a70 commit b9143b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,16 +883,16 @@ def broadcast_done(status, msg):
def prepare_for_payment_request(self):
style = "QWidget { background-color:none;border:none;}"
self.tabs.setCurrentIndex(1)
self.payto_e.setReadOnly(True)
self.payto_e.setStyleSheet(style)
self.amount_e.setReadOnly(True)
for e in [self.payto_e, self.amount_e, self.message_e]:
e.setReadOnly(True)
e.setStyleSheet(style)
self.payto_e.setText(_("please wait..."))
self.amount_e.setStyleSheet(style)
return True

def payment_request_ok(self):
self.payto_e.setText(self.gui_object.payment_request.domain)
self.amount_e.setText(self.format_amount(self.gui_object.payment_request.get_amount()))
self.message_e.setText(self.gui_object.payment_request.memo)

def payment_request_error(self):
self.payto_e.setText(self.gui_object.payment_request.error)
Expand Down
2 changes: 2 additions & 0 deletions lib/paymentrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def verify(self):
addr = transaction.get_address_from_output_script(o.script)[1]
self.outputs.append( (addr, o.amount) )

self.memo = pay_det.memo

if CA_match:
print 'Signed By Trusted CA: ', CA_OU

Expand Down

0 comments on commit b9143b3

Please sign in to comment.