mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix copying text to external apps when running on Gnome
Mutter seems to get confused if we mutate the keyboard in dataChanged(). Closes #1799
This commit is contained in:
parent
8ccadd96e6
commit
24ab8ac423
1 changed files with 1 additions and 1 deletions
|
@ -1343,7 +1343,7 @@ class EditorWebView(AnkiWebView):
|
||||||
return
|
return
|
||||||
html = mime.html()
|
html = mime.html()
|
||||||
mime.setHtml(f"<!--anki-->{html}")
|
mime.setHtml(f"<!--anki-->{html}")
|
||||||
clip.setMimeData(mime)
|
aqt.mw.progress.timer(10, lambda: clip.setMimeData(mime), False, parent=self)
|
||||||
|
|
||||||
def contextMenuEvent(self, evt: QContextMenuEvent) -> None:
|
def contextMenuEvent(self, evt: QContextMenuEvent) -> None:
|
||||||
m = QMenu(self)
|
m = QMenu(self)
|
||||||
|
|
Loading…
Reference in a new issue