mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05:00
fix double pasting in fact editor
This commit is contained in:
parent
b02b2ebff7
commit
043c402a45
1 changed files with 1 additions and 0 deletions
|
|
@ -631,6 +631,7 @@ class FactEdit(QTextEdit):
|
||||||
audio = ("wav", "mp3", "ogg", "flac")
|
audio = ("wav", "mp3", "ogg", "flac")
|
||||||
if source.hasHtml() and "qrichtext" in unicode(source.html()):
|
if source.hasHtml() and "qrichtext" in unicode(source.html()):
|
||||||
self.insertHtml(source.html())
|
self.insertHtml(source.html())
|
||||||
|
return
|
||||||
if source.hasText():
|
if source.hasText():
|
||||||
txt = unicode(source.text())
|
txt = unicode(source.text())
|
||||||
l = txt.lower()
|
l = txt.lower()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue