|
|
@ -107,7 +107,7 @@ class TxDialog(QDialog): |
|
|
|
json_text = json.dumps(self.tx.as_dict()).replace(' ', '') |
|
|
|
self.parent.show_qrcode(json_text, 'Transaction') |
|
|
|
except Exception as e: |
|
|
|
self.parent.show_message(str(e)) |
|
|
|
self.show_message(str(e)) |
|
|
|
|
|
|
|
|
|
|
|
def sign(self): |
|
|
@ -167,7 +167,6 @@ class TxDialog(QDialog): |
|
|
|
else: |
|
|
|
self.date_label.hide() |
|
|
|
|
|
|
|
|
|
|
|
# if we are not synchronized, we cannot tell |
|
|
|
if self.parent.network is None or not self.parent.network.is_running() or not self.parent.network.is_connected(): |
|
|
|
return |
|
|
@ -188,14 +187,6 @@ class TxDialog(QDialog): |
|
|
|
self.amount_label.setText(_("Transaction unrelated to your wallet")) |
|
|
|
|
|
|
|
|
|
|
|
def exec_menu(self, position,l): |
|
|
|
item = l.itemAt(position) |
|
|
|
if not item: return |
|
|
|
addr = unicode(item.text(0)) |
|
|
|
menu = QMenu() |
|
|
|
menu.addAction(_("Copy to clipboard"), lambda: self.parent.app.clipboard().setText(addr)) |
|
|
|
menu.exec_(l.viewport().mapToGlobal(position)) |
|
|
|
|
|
|
|
|
|
|
|
def add_io(self, vbox): |
|
|
|
|
|
|
|