mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix drag&drop on some Linux systems
Thanks to Ab_Bc: https://forums.ankiweb.net/t/image-occlusion-not-working-jan-2025/54523/17 Closes #3767
This commit is contained in:
parent
5c84a0cb5e
commit
5ccc6304e3
1 changed files with 2 additions and 1 deletions
|
@ -1552,7 +1552,8 @@ class EditorWebView(AnkiWebView):
|
||||||
extended = self._wantsExtendedPaste()
|
extended = self._wantsExtendedPaste()
|
||||||
mime = evt.mimeData()
|
mime = evt.mimeData()
|
||||||
assert mime is not None
|
assert mime is not None
|
||||||
cursor_pos = self.mapFromGlobal(QCursor.pos())
|
evt_pos = evt.position()
|
||||||
|
cursor_pos = QPoint(int(evt_pos.x()), int(evt_pos.y()))
|
||||||
|
|
||||||
if evt.source() and mime.hasHtml():
|
if evt.source() and mime.hasHtml():
|
||||||
# don't filter html from other fields
|
# don't filter html from other fields
|
||||||
|
|
Loading…
Reference in a new issue