From 9a26b536db01596d1c58f4fac33e3deecdc792d0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 2 Jul 2023 20:37:05 +1000 Subject: [PATCH] Remove dataChanged workaround on Windows I believe this should be fixed in 6.4/6.5 https://bugreports.qt.io/browse/QTBUG-102738 --- qt/aqt/editor.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index a232a8ced..1ceab4d92 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -1382,10 +1382,6 @@ class EditorWebView(AnkiWebView): def flagAnkiText(self) -> None: # be ready to adjust when clipboard event fires self._markInternal = True - # workaround broken QClipboard.dataChanged() on recent Qt6 versions - # https://github.com/ankitects/anki/issues/1793 - if is_win and qtmajor == 6: - self.editor.mw.progress.single_shot(300, self._flagAnkiText, True) def _flagAnkiText(self) -> None: # add a comment in the clipboard html so we can tell text is copied