support drag & drop from konqueror too

This commit is contained in:
Damien Elmes 2009-01-05 08:47:55 +09:00
parent 3970aab5f8
commit 914fc45666

View file

@ -595,7 +595,8 @@ class FactEdit(QTextEdit):
audio = ("wav", "mp3", "ogg", "flac")
if source.hasText():
txt = unicode(source.text())
if txt.lower().startswith("http://"):
l = txt.lower()
if l.startswith("http://") or l.startswith("file://"):
if not source.hasImage():
# firefox on linux just gives us a url
ext = txt.split(".")[-1].lower()