mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Remove CF_HTML header workaround
This commit is contained in:
parent
bbe4e9e797
commit
595c92730f
1 changed files with 0 additions and 4 deletions
|
@ -1345,10 +1345,6 @@ class EditorWebView(AnkiWebView):
|
|||
if not mime.hasHtml():
|
||||
return
|
||||
html = mime.html()
|
||||
if is_win and qtmajor == 6:
|
||||
# workaround Qt including CF_HTML header in clipboard
|
||||
# FIXME: remove after we switch to Qt 6.2.5/6.3.1+.
|
||||
html = re.sub(r"^Version:0.9(.|\r|\n)+?SourceURL:.*?\r\n", "", html)
|
||||
mime.setHtml(f"<!--anki-->{html}")
|
||||
aqt.mw.progress.timer(10, lambda: clip.setMimeData(mime), False, parent=self)
|
||||
|
||||
|
|
Loading…
Reference in a new issue