fix double pasting in fact editor

This commit is contained in:
Samson Melamed 2009-01-17 17:34:51 -05:00
parent b02b2ebff7
commit 043c402a45

View file

@ -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()