Windows: Fix tts config dialog not showing initial voice selection correctly if not the system default voice

This commit is contained in:
Kovid Goyal 2020-12-11 20:54:46 +05:30
parent 621eeab6d1
commit 3356597218
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -59,7 +59,7 @@ class VoicesModel(QAbstractTableModel):
if v != self.system_default_voice:
for i, x in enumerate(self.current_voices):
if x[4] == v:
r = i + i
r = i + 1
break
else:
return