mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
now you can paste audio and image files from gnome apps, too.
This commit is contained in:
parent
7c68e2fb68
commit
50bb21b343
1 changed files with 3 additions and 0 deletions
|
@ -947,6 +947,9 @@ class FactEdit(QTextEdit):
|
|||
if "\n" in txt:
|
||||
txt = txt.split("\n")[0]
|
||||
hadN = True
|
||||
if "\r" in txt:
|
||||
txt = txt.split("\r")[0]
|
||||
hadN = True
|
||||
if not source.hasImage() or hadN:
|
||||
# firefox on linux just gives us a url
|
||||
ext = txt.split(".")[-1].lower()
|
||||
|
|
Loading…
Reference in a new issue