tlocal_tx: allow saving already signed tx through tx dialog - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 5c1da002add5a8280737e67a5d9de7979bf08783
DIR parent e5f239dd287a72d8ac5711d31afe8e886bcb3814
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 31 Jan 2018 05:27:28 +0100
local_tx: allow saving already signed tx through tx dialog
Diffstat:
M gui/qt/transaction_dialog.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
DIR diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py
t@@ -101,8 +101,12 @@ class TxDialog(QDialog, MessageBoxMixin):
b.clicked.connect(self.do_broadcast)
self.save_button = QPushButton(_("Save"))
- self.save_button.setDisabled(True)
- self.save_button.setToolTip(_("Please sign this transaction in order to save it"))
+ save_button_disabled = not tx.is_complete()
+ self.save_button.setDisabled(save_button_disabled)
+ if save_button_disabled:
+ self.save_button.setToolTip(_("Please sign this transaction in order to save it"))
+ else:
+ self.save_button.setToolTip("")
self.save_button.clicked.connect(self.save)
self.export_button = b = QPushButton(_("Export"))