electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit b80eacf7bf8e6fe1581c6bc6afb04f2f02baae8d
parent 5c1da002add5a8280737e67a5d9de7979bf08783
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 31 Jan 2018 16:44:50 +0100

fix #3016

Diffstat:
Mgui/qt/transaction_dialog.py | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py @@ -147,11 +147,14 @@ class TxDialog(QDialog, MessageBoxMixin): def closeEvent(self, event): if (self.prompt_if_unsaved and not self.saved - and not self.question(_('This transaction is not saved. Close anyway?'), title=_("Warning"))): + and not self.question(_('This transaction is not saved. Close anyway?'), title=_("Warning"))): event.ignore() else: event.accept() - dialogs.remove(self) + try: + dialogs.remove(self) + except ValueError: + pass # was not in list already def show_qr(self): text = bfh(str(self.tx))