From 0d3fc599172825aabe9af55100737df2936c92ca Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 14 Mar 2012 01:09:06 +0900 Subject: [PATCH] work around a crash on windows when adding media --- aqt/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aqt/editor.py b/aqt/editor.py index 981a4a27c..9f9d7fdd3 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -736,6 +736,7 @@ class Editor(object): def addMedia(self, path, canDelete=False): html = self._addMedia(path, canDelete) + self.mw.app.processEvents() self.web.eval("setFormat('inserthtml', %s);" % simplejson.dumps(html)) def _addMedia(self, path, canDelete=False):