Skip to content

Commit

Permalink
local_tx: allow saving already signed tx through tx dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
SomberNight committed Jan 31, 2018
1 parent e5f239d commit 5c1da00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gui/qt/transaction_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ def __init__(self, tx, parent, desc, prompt_if_unsaved):
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"))
Expand Down

0 comments on commit 5c1da00

Please sign in to comment.