1
0

qt wizard: fix scanning qr code when restoring from xpub

fixes #6342
This commit is contained in:
SomberNight
2020-07-08 01:51:14 +02:00
parent 4961020e01
commit 1c9a6f5770
2 changed files with 12 additions and 7 deletions

View File

@@ -60,9 +60,9 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin):
def qr_input(self):
from electrum import qrscanner
main_window = get_parent_main_window(self)
assert main_window
config = main_window.config
window_or_wizard = get_parent_main_window(self, allow_wizard=True)
assert window_or_wizard
config = window_or_wizard.config
try:
data = qrscanner.scan_barcode(config.get_video_device())
except BaseException as e: