prevent double click except in chinese/japanese models

This commit is contained in:
Damien Elmes 2009-04-25 01:18:44 +09:00
parent 0534ce5d40
commit 612eafc64a

View file

@ -995,6 +995,11 @@ class FactEdit(QTextEdit):
# this shouldn't be necessary if/when we move away from kakasi
def mouseDoubleClickEvent(self, evt):
t = self.parent.fact.model.tags.lower()
if (not "japanese" in t and
not "mandarin" in t and
not "cantonese" in t):
return
r = QRegExp("\\{(.*[|,].*)\\}")
r.setMinimal(True)