require consecutive match when filtering (#786)

This commit is contained in:
Damien Elmes 2013-05-23 14:38:47 +09:00
parent d74338b6e9
commit 19f62e8d41

View File

@ -94,10 +94,9 @@ class StudyDeck(QDialog):
filt = filt.lower()
if not filt:
return True
for c in filt:
if c not in name:
for word in filt.split(" "):
if word not in name:
return False
name = name[name.index(c)+1:]
return True
def onReset(self):