View contact address on block explorer menu item

Resolves issue #1304
This commit is contained in:
Neil Booth 2015-06-21 09:57:38 +09:00
parent 5c59b017ae
commit 175081d9fc

View file

@ -1434,6 +1434,9 @@ class ElectrumWindow(QMainWindow):
menu.addAction(_("Copy to Clipboard"), lambda: self.app.clipboard().setText(key))
menu.addAction(_("Pay to"), lambda: self.payto(self.get_contact_payto(key)))
menu.addAction(_("Delete"), lambda: self.delete_contact(key))
addr_URL = block_explorer_URL(self.config, 'addr', unicode(item.text(1)))
if addr_URL:
menu.addAction(_("View on block explorer"), lambda: webbrowser.open(addr_URL))
run_hook('create_contact_menu', menu, item)
menu.exec_(self.contacts_list.viewport().mapToGlobal(position))