now you can paste audio and image files from gnome apps, too.

This commit is contained in:
Timo Paulssen 2009-07-08 13:59:21 +02:00
parent 7c68e2fb68
commit 50bb21b343

View file

@ -947,6 +947,9 @@ class FactEdit(QTextEdit):
if "\n" in txt: if "\n" in txt:
txt = txt.split("\n")[0] txt = txt.split("\n")[0]
hadN = True hadN = True
if "\r" in txt:
txt = txt.split("\r")[0]
hadN = True
if not source.hasImage() or hadN: if not source.hasImage() or hadN:
# firefox on linux just gives us a url # firefox on linux just gives us a url
ext = txt.split(".")[-1].lower() ext = txt.split(".")[-1].lower()