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):