Skip to content

Commit

Permalink
fix #5376
Browse files Browse the repository at this point in the history
  • Loading branch information
SomberNight committed May 25, 2019
1 parent 158090b commit 3b445d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions electrum/gui/kivy/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import traceback
from decimal import Decimal
import threading
import asyncio

from electrum.bitcoin import TYPE_ADDRESS
from electrum.storage import WalletStorage
Expand Down Expand Up @@ -280,6 +281,7 @@ def __init__(self, **kwargs):
self.is_exit = False
self.wallet = None
self.pause_time = 0
self.asyncio_loop = asyncio.get_event_loop()

App.__init__(self)#, **kwargs)

Expand Down
2 changes: 1 addition & 1 deletion electrum/gui/kivy/uix/screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def set_URI(self, text):
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
Expand Down

0 comments on commit 3b445d7

Please sign in to comment.