From 043c402a45f0b850bd47a4aa4ec29aa0c828c301 Mon Sep 17 00:00:00 2001 From: Samson Melamed Date: Sat, 17 Jan 2009 17:34:51 -0500 Subject: [PATCH] fix double pasting in fact editor --- ankiqt/ui/facteditor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ankiqt/ui/facteditor.py b/ankiqt/ui/facteditor.py index c08965532..5d0b47922 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -631,6 +631,7 @@ class FactEdit(QTextEdit): audio = ("wav", "mp3", "ogg", "flac") if source.hasHtml() and "qrichtext" in unicode(source.html()): self.insertHtml(source.html()) + return if source.hasText(): txt = unicode(source.text()) l = txt.lower()