tqt open channel: early return if fields are left empty - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2409782975d15213804aa80614a322262cd32084 DIR parent ac884eb3c34a42bd93aebc966a7dd0d764057f76 HTML Author: SomberNight <somber.night@protonmail.com> Date: Sun, 23 Feb 2020 19:53:41 +0100 qt open channel: early return if fields are left empty closes #5934 Diffstat: M electrum/gui/qt/channels_list.py | 2 ++ M electrum/gui/qt/confirm_tx_dialog.… | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py t@@ -256,4 +256,6 @@ class ChannelsList(MyTreeView): else: funding_sat = amount_e.get_amount() connect_str = str(remote_nodeid.text()).strip() + if not connect_str or not funding_sat: + return self.parent.open_channel(connect_str, funding_sat, 0) DIR diff --git a/electrum/gui/qt/confirm_tx_dialog.py b/electrum/gui/qt/confirm_tx_dialog.py t@@ -175,6 +175,7 @@ class ConfirmTxDialog(TxEditor, WindowModalDialog): password = self.pw.text() or None if self.password_required: if password is None: + self.main_window.show_error(_("Password required"), parent=self) return try: self.wallet.check_password(password)