From 518a61732e72daa10c328afd9bdb3de06e1ea59c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 May 2013 16:26:31 +0900 Subject: [PATCH] fix main window coming to top after paste on win (#456) --- aqt/editor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index b1e97e123..3f018dc9e 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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)'})