mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
support drag & drop from konqueror too
This commit is contained in:
parent
3970aab5f8
commit
914fc45666
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue