commit b6d541ef8e181265f1c2c22d80ed16bf6e9165b6
parent 9bebc051493398e5bf5012bca3215b16187d9c01
Author: ThomasV <thomasv1@gmx.de>
Date: Sun, 2 Mar 2014 18:02:21 +0100
Merge pull request #591 from dabura667/Blockchainlink
Add link in history to view the tx on blockchain.info
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -20,6 +20,7 @@ import sys, time, datetime, re, threading
from electrum.i18n import _, set_language
from electrum.util import print_error, print_msg
import os.path, json, ast, traceback
+import webbrowser
import shutil
import StringIO
@@ -594,6 +595,7 @@ class ElectrumWindow(QMainWindow):
menu.addAction(_("Copy ID to Clipboard"), lambda: self.app.clipboard().setText(tx_hash))
menu.addAction(_("Details"), lambda: self.show_transaction(self.wallet.transactions.get(tx_hash)))
menu.addAction(_("Edit description"), lambda: self.tx_label_clicked(item,2))
+ menu.addAction(_("View on Blockchain.info"), lambda: webbrowser.open("https://blockchain.info/tx/" + tx_hash))
menu.exec_(self.contacts_list.viewport().mapToGlobal(position))