mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
prevent double click except in chinese/japanese models
This commit is contained in:
parent
0534ce5d40
commit
612eafc64a
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue