mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
fix main window coming to top after paste on win (#456)
This commit is contained in:
parent
e47da34cbc
commit
518a61732e
1 changed files with 2 additions and 1 deletions
|
@ -1091,7 +1091,8 @@ class EditorWebView(AnkiWebView):
|
|||
if url.lower().startswith("file:/"):
|
||||
url = urllib.quote(url, safe="/:")
|
||||
# fetch it into a temporary folder
|
||||
self.editor.mw.progress.start(immediate=True)
|
||||
self.editor.mw.progress.start(
|
||||
immediate=True, parent=self.editor.parentWindow)
|
||||
try:
|
||||
req = urllib2.Request(url, None, {
|
||||
'User-Agent': 'Mozilla/5.0 (compatible; Anki)'})
|
||||
|
|
Loading…
Reference in a new issue