mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
qt tx dialog: disable "Finalize" btn if tx is None
e.g. NotEnoughFunds due to too high fee
This commit is contained in:
parent
66ddedb97e
commit
13b858ab26
1 changed files with 3 additions and 0 deletions
|
@ -365,6 +365,7 @@ class BaseTxDialog(QDialog, MessageBoxMixin):
|
|||
def update(self):
|
||||
if not self.finalized:
|
||||
self.update_fee_fields()
|
||||
self.finalize_button.setEnabled(self.tx is not None)
|
||||
if self.tx is None:
|
||||
return
|
||||
self.update_io()
|
||||
|
@ -775,6 +776,8 @@ class PreviewTxDialog(BaseTxDialog, TxEditor):
|
|||
self.feerounding_icon.setVisible(abs(feerounding) >= 1)
|
||||
|
||||
def on_finalize(self):
|
||||
if not self.tx:
|
||||
return
|
||||
self.finalized = True
|
||||
self.tx.set_rbf(self.rbf_cb.isChecked())
|
||||
for widget in [self.fee_slider, self.feecontrol_fields, self.rbf_cb]:
|
||||
|
|
Loading…
Add table
Reference in a new issue