local_tx: allow saving already signed tx through tx dialog

This commit is contained in:
SomberNight 2018-01-31 05:27:28 +01:00
parent e5f239dd28
commit 5c1da002ad

View file

@ -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"))