commit f231349673285e7a70465dc1726c4243f9a35d98
parent 3851e78454f559ec4368a4b04dd61c2b9a1f9dc1
Author: SomberNight <somber.night@protonmail.com>
Date: Sun, 17 Dec 2017 21:11:25 +0100
fix: crash when closing qrscanner window (see #3546)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gui/qt/qrtextedit.py b/gui/qt/qrtextedit.py
@@ -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