diff --git a/aqt/editor.py b/aqt/editor.py index cfffb0197..c5230b54b 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -1042,14 +1042,14 @@ class EditorWebView(AnkiWebView): # print "html", mime.html() # print "urls", mime.urls() # print "text", mime.text() - if mime.hasImage(): - return self._processImage(mime) - elif mime.hasUrls(): + if mime.hasUrls(): return self._processUrls(mime) elif mime.hasText() and (self.strip or not mime.hasHtml()): return self._processText(mime) elif mime.hasHtml(): return self._processHtml(mime) + elif mime.hasImage(): + return self._processImage(mime) else: # nothing return QMimeData()