From 0545edd4c66e63f04871bfc6fbe25dc626f82905 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 7 Mar 2023 08:28:34 +0100 Subject: [PATCH] confirm_tx_dialog: fix warning (follow-up previous commit) --- electrum/gui/qt/confirm_tx_dialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/confirm_tx_dialog.py b/electrum/gui/qt/confirm_tx_dialog.py index 357a54371..7f3baaec1 100644 --- a/electrum/gui/qt/confirm_tx_dialog.py +++ b/electrum/gui/qt/confirm_tx_dialog.py @@ -534,6 +534,7 @@ class TxEditor(WindowModalDialog): if self.not_enough_funds: self.io_widget.update(None) self.set_feerounding_visibility(False) + self.warning = '' else: self.check_warnings() self.update_fee_fields() @@ -545,6 +546,7 @@ class TxEditor(WindowModalDialog): self._update_send_button() self._update_message() + self._update_warning() def check_warnings(self): # side effects: self.error, self.warning @@ -570,7 +572,6 @@ class TxEditor(WindowModalDialog): warnings.append(_('This payment was merged with another existing transaction.')) # TODO: warn if we send change back to input address self.warning = _('Warning') + ': ' + '\n'.join(warnings) if warnings else '' - self._update_warning() def set_locktime(self): if not self.tx: