From 3b445d7248d2e8aca25e045557685eeb9e9328c8 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 25 May 2019 05:13:57 +0200 Subject: [PATCH] fix #5376 --- electrum/gui/kivy/main_window.py | 2 ++ electrum/gui/kivy/uix/screens.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py index 8d5495724..0aef417af 100644 --- a/electrum/gui/kivy/main_window.py +++ b/electrum/gui/kivy/main_window.py @@ -6,6 +6,7 @@ import datetime import traceback from decimal import Decimal import threading +import asyncio from electrum.bitcoin import TYPE_ADDRESS from electrum.storage import WalletStorage @@ -280,6 +281,7 @@ class ElectrumWindow(App): self.is_exit = False self.wallet = None self.pause_time = 0 + self.asyncio_loop = asyncio.get_event_loop() App.__init__(self)#, **kwargs) diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py index 4d1bb0131..472cb01a3 100644 --- a/electrum/gui/kivy/uix/screens.py +++ b/electrum/gui/kivy/uix/screens.py @@ -175,7 +175,7 @@ class SendScreen(CScreen): self.payment_request_queued = text return try: - uri = parse_URI(text, self.app.on_pr) + uri = parse_URI(text, self.app.on_pr, loop=self.app.asyncio_loop) except InvalidBitcoinURI as e: self.app.show_info(_("Error parsing URI") + f":\n{e}") return