fix: crash when closing qrscanner window (see #3546)
This commit is contained in:
parent
d9925967b7
commit
02fda5a85b
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user