tfix: crash when closing qrscanner window (see #3546) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f231349673285e7a70465dc1726c4243f9a35d98 DIR parent 3851e78454f559ec4368a4b04dd61c2b9a1f9dc1 HTML Author: SomberNight <somber.night@protonmail.com> Date: Sun, 17 Dec 2017 21:11:25 +0100 fix: crash when closing qrscanner window (see #3546) Diffstat: M gui/qt/qrtextedit.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/qt/qrtextedit.py b/gui/qt/qrtextedit.py t@@ -56,6 +56,8 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin): except BaseException as e: self.show_error(str(e)) data = '' + if not data: + data = '' self.setText(data) return data