From a740a8a004db363b36379350ae80720bb5fd5fbc Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 9 Feb 2023 11:15:31 +0100 Subject: [PATCH] TxEditor: move set_locktime --- electrum/gui/qt/confirm_tx_dialog.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/electrum/gui/qt/confirm_tx_dialog.py b/electrum/gui/qt/confirm_tx_dialog.py index 71b2e8e5a..1debeb0ef 100644 --- a/electrum/gui/qt/confirm_tx_dialog.py +++ b/electrum/gui/qt/confirm_tx_dialog.py @@ -492,6 +492,13 @@ class TxEditor(WindowModalDialog): else: self.toggle_send_button(True) + def set_locktime(self): + if not self.tx: + return + locktime = self.locktime_e.get_locktime() + if locktime is not None: + self.tx.locktime = locktime + def _update_amount_label(self): pass @@ -560,13 +567,6 @@ class ConfirmTxDialog(TxEditor): raise self.tx.set_rbf(True) - def set_locktime(self): - if not self.tx: - return - locktime = self.locktime_e.get_locktime() - if locktime is not None: - self.tx.locktime = locktime - def have_enough_funds_assuming_zero_fees(self) -> bool: # called in send_tab.py try: