mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
ignore image drag if qt doesn't provide html for it
This commit is contained in:
parent
8a2ca46a7a
commit
dc3ef60c75
1 changed files with 4 additions and 1 deletions
|
@ -900,7 +900,10 @@ class EditorWebView(AnkiWebView):
|
||||||
mime = QMimeData()
|
mime = QMimeData()
|
||||||
mime.setHtml(self._filteredHTML(oldmime.html()))
|
mime.setHtml(self._filteredHTML(oldmime.html()))
|
||||||
else:
|
else:
|
||||||
mime = oldmime
|
# old qt on linux won't give us html when dragging an image;
|
||||||
|
# in that case just do the default action (which is to ignore
|
||||||
|
# the drag)
|
||||||
|
return AnkiWebView.dropEvent(self, evt)
|
||||||
else:
|
else:
|
||||||
mime = self._processMime(oldmime)
|
mime = self._processMime(oldmime)
|
||||||
# create a new event with the new mime data
|
# create a new event with the new mime data
|
||||||
|
|
Loading…
Reference in a new issue