Browse Source

fix: crash when closing qrscanner window (see #3546)

3.1
SomberNight 7 years ago
parent
commit
f231349673
  1. 2
      gui/qt/qrtextedit.py

2
gui/qt/qrtextedit.py

@ -56,6 +56,8 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin):
except BaseException as e: except BaseException as e:
self.show_error(str(e)) self.show_error(str(e))
data = '' data = ''
if not data:
data = ''
self.setText(data) self.setText(data)
return data return data

Loading…
Cancel
Save