tfix #3016 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b80eacf7bf8e6fe1581c6bc6afb04f2f02baae8d DIR parent 5c1da002add5a8280737e67a5d9de7979bf08783 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 31 Jan 2018 16:44:50 +0100 fix #3016 Diffstat: M gui/qt/transaction_dialog.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py t@@ -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))