tUpdate __init__.py (#4668) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit aac7a34405575a238964d6e429ebaf90ecd03fc6 DIR parent c99007bda73cfe88f2a054f51df7cb607135c1c8 HTML Author: RGauthamRam <30320759+RGauthamRam@users.noreply.github.com> Date: Thu, 30 Aug 2018 14:35:01 +0000 Update __init__.py (#4668) Resolving the issue #4363 Diffstat: M electrum/gui/qt/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py t@@ -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: