tqt paytoedit: fixes for pay-to-many (when including "!") - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit b16164da4f5c3fc9717073c7bda8e9618c29c5f2 (DIR) parent 3658f870359b54e178d3e9bb9a6e5f15244c7232 (HTM) Author: SomberNight <somber.night@protonmail.com> Date: Sat, 18 Jan 2020 03:55:07 +0100 qt paytoedit: fixes for pay-to-many (when including "!") Diffstat: M electrum/gui/qt/main_window.py | 2 +- M electrum/gui/qt/paytoedit.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- (DIR) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py t@@ -1700,7 +1700,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): return None return clayout.selected_index() - def lock_amount(self, b): + def lock_amount(self, b: bool) -> None: self.amount_e.setFrozen(b) self.max_button.setEnabled(not b) (DIR) diff --git a/electrum/gui/qt/paytoedit.py b/electrum/gui/qt/paytoedit.py t@@ -182,10 +182,10 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger): self.payto_scriptpubkey = None if self.win.max_button.isChecked(): - self.win.do_update_fee() + self.win.spend_max() else: self.amount_edit.setAmount(total if outputs else None) - self.win.lock_amount(total or len(lines)>1) + self.win.lock_amount(self.win.max_button.isChecked() or bool(outputs)) def get_errors(self) -> Sequence[PayToLineError]: return self.errors