commit 74bdc7a7fa12de756287cafb9da81d41881f2778
parent f894af90d7b3f7d7623ef0e07461e5a7e4d2a4ab
Author: ThomasV <electrumdev@gmail.com>
Date: Tue, 23 Jun 2015 14:23:07 +0200
Merge pull request #1308 from kyuupichan/issue_1304
View contact address on block explorer menu item
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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))