mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -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:/"):
|
if url.lower().startswith("file:/"):
|
||||||
url = urllib.quote(url, safe="/:")
|
url = urllib.quote(url, safe="/:")
|
||||||
# fetch it into a temporary folder
|
# 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:
|
try:
|
||||||
req = urllib2.Request(url, None, {
|
req = urllib2.Request(url, None, {
|
||||||
'User-Agent': 'Mozilla/5.0 (compatible; Anki)'})
|
'User-Agent': 'Mozilla/5.0 (compatible; Anki)'})
|
||||||
|
|
Loading…
Reference in a new issue