From aac7a34405575a238964d6e429ebaf90ecd03fc6 Mon Sep 17 00:00:00 2001 From: RGauthamRam <30320759+RGauthamRam@users.noreply.github.com> Date: Thu, 30 Aug 2018 14:35:01 +0000 Subject: [PATCH] Update __init__.py (#4668) Resolving the issue #4363 --- electrum/gui/qt/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py index 7fa7f4e5e..b49826c66 100644 --- a/electrum/gui/qt/__init__.py +++ b/electrum/gui/qt/__init__.py @@ -260,7 +260,8 @@ class ElectrumGui: return w def close_window(self, window): - self.windows.remove(window) + if window in self.windows: + self.windows.remove(window) self.build_tray_menu() # save wallet path of last open window if not self.windows: