From 175081d9fc6ac50d1a2f504d8854dab425e7c6ac Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 21 Jun 2015 09:57:38 +0900 Subject: [PATCH] View contact address on block explorer menu item Resolves issue #1304 --- gui/qt/main_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index cccfa8e2..cfa0191c 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -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))